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

I tried doing an Albers equal area projection, but the edges appeared jagged #15748

Open
heian911 opened this issue Apr 16, 2024 · 1 comment
Labels

Comments

@heian911
Copy link

image
image

https://proj.org/en/9.4/operations/projections/aea.html

image

@heian911 heian911 added the bug label Apr 16, 2024
@ahocevar
Copy link
Member

ahocevar commented Apr 16, 2024

There are two facts contributing to what you're seeing:

  1. Tile sources using EPSG:3857 don't have data for the poles, because their y coordinates would be +/- Infinity. So you won't get data beyond approximately +/- 85°.
  2. The further you get outside the validity extent of a projection, the more inaccurate the reprojection will get.

You'll get better results with vector data, but problem 2 will persist. Note that the validity extent of EPSG:3005 is much smaller. See the outline of the validity extent in blue:

Untitled

You can play with the codesandbox that I created the above screenshot from here: https://codesandbox.io/p/sandbox/simple-forked-z8j7yn?file=%2Fmain.js%3A61%2C12. Caution: for the calculation of the blue extent polygon, it makes use of functions that are not part of the supported API.

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

No branches or pull requests

2 participants