-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pixel distance #20
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we simplify a line, we usually do it for plotting the line on a map. This means that ideally, we would like to express the tolerance in terms of pixels on the map, not in kilometers. Since maps usually use the Mercator projection, there is not a simply linear correlation between the two.
So if accuracy is a concern, we would add a pixel-distance calculation. Otherwise, we could simply use the degrees to calculate a 'degrees distance' (perhaps with a crude cos(lattitude) correction, as to speed things up.
The text was updated successfully, but these errors were encountered: