Skip to content
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

Open
renevoorburg opened this issue Jan 19, 2017 · 0 comments
Open

pixel distance #20

renevoorburg opened this issue Jan 19, 2017 · 0 comments

Comments

@renevoorburg
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant