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

"Projected bounds" are not calculated correctly #85

Open
petrsloup opened this issue Jul 10, 2015 · 0 comments
Open

"Projected bounds" are not calculated correctly #85

petrsloup opened this issue Jul 10, 2015 · 0 comments
Labels

Comments

@petrsloup
Copy link
Member

Currently, the "projected bounds" are calculated by transforming the WGS84 bounds corners (two points): https://github.com/klokantech/epsg.io/blob/a8fc040f35565989cf0523f6929c85958955962c/app.py#L828

This is actually incorrect for some transformations.
For example: http://epsg.io/5070
Transforming the corners omits large portion at the south of the extent, which is then actually not part of the displayed "projected bounds".
This happens because the projection bends significantly:

Possible solution is to transform a grid of points (instead of just 2) and calculate bbox of those points to be the projected bounds.

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

No branches or pull requests

2 participants