Skip to content

Can setPixelTolerance vary with latitude? #558

Answered by msbarry
wipfli asked this question in Q&A
Discussion options

You must be logged in to vote

Set pixel tolerance should always generate a consistent smoothing when rendered to web mercator since planetiler works in screen pixel coordinates. I think what's going on is the h3 cells get bigger at higher latitudes. I wonder if there's a variant that generates consistent sized cells in web Mercator?

If you really wanted to do this you could get the centroid of the feature when processing it, compute latitude and set the pixel tolerance based off of that

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@msbarry
Comment options

Answer selected by wipfli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants