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

Clamp EPSG:3857 y to lowest/highest possible value instead of validity extent #11719

Merged
merged 2 commits into from
Nov 19, 2020

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented Nov 5, 2020

Although the validity extent of EPSG:3857 in y direction only ranges from ~-85 to ~85 degrees, lower/higher values can be handled. To avoid geometries getting corrupted topologically when transforming values from high/low latitudes, we can clamp to the lowest/highest safe value instead of the validity extent.

Improves (but does not fix) #11672.

@ahocevar ahocevar changed the title Clamp to lowest/highest possible value instead of validity extent Clamp EPSG:3857 y to lowest/highest possible value instead of validity extent Nov 5, 2020
src/ol/proj/epsg3857.js Outdated Show resolved Hide resolved
Co-authored-by: MoonE <maxi_kroeg@web.de>
@ahocevar ahocevar merged commit dd95f56 into openlayers:main Nov 19, 2020
@ahocevar ahocevar deleted the less-aggressie-3857-clamping branch November 19, 2020 12:51
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

Successfully merging this pull request may close these issues.

3 participants