Skip to main content

I have a state boundary and I want to use a map scale as a parameter to calculate the Tile width and Tile height (ground units) as attributes for the Tiler.

Given a coordinate system, how do I calculate that width and height of that bounding box at a scale of 1:100 using an Expression Evaluator? Then do it again for the next scales 1:500, 1:1000, etc.

 

BoundingBoxReplacer to get the box of the original unscaled state boundary > Scaler to scale the box to the arrpopriate scale > BoundsExtractor to get corners > ExpressionEvaluator to calculate diff bewtween max and mins.


My premise was wrong but the solution is right. I need the relative spatial extent of the data and not really view extent. I can't have a map or display scale if I don't pick my map or display size. The number that I type in the scaler parameter became a number to make my tiles smaller or bigger.

I'm sharing my solution in case some else may have a need for it. The default Scaler parameter is set to 1 right now.

Thanks.

pyramid_tiler.fmwt

 


My premise was wrong but the solution is right. I need the relative spatial extent of the data and not really view extent. I can't have a map or display scale if I don't pick my map or display size. The number that I type in the scaler parameter became a number to make my tiles smaller or bigger.

I'm sharing my solution in case some else may have a need for it. The default Scaler parameter is set to 1 right now.

Thanks.

pyramid_tiler.fmwt

 

Thanks for sharing!


Reply