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

improved antimeridian support #217

Merged
merged 5 commits into from
Sep 17, 2023
Merged

Conversation

DanielJDufour
Copy link
Member

Overall goal: improve anti-meridian support

Specifically I created this PR to share a new failing test. Basically, most GIS software including gdal, reproject-geojson and geoblaze do a poor of reprojecting geojson from 4326 if it overlaps the left edge of the world.

The example of when this geometry could be generated is likely when you draw an area in the Pacific that extends across the antimeridian and is found on the left side of the map view.

This is almost certainly an issue when reprojecting from other projections as well, but I haven't created a test case for that yet.

@DanielJDufour
Copy link
Member Author

It should be noted that geojson.io (and presumably LeafletJS) does handle the visualization of this geometry correctly.
Screen Shot 2023-08-24 at 7 29 24 PM

@DanielJDufour DanielJDufour marked this pull request as ready for review September 17, 2023 14:12
@DanielJDufour DanielJDufour changed the title added stalling anti-meridian test improved antimeridian support Sep 17, 2023
@DanielJDufour DanielJDufour merged commit 836ad0f into master Sep 17, 2023
2 checks passed
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.

1 participant