GeoTIFF / geoblaze

Blazing Fast JavaScript Raster Processing Engine
http://geoblaze.io
MIT License
181 stars 28 forks source link

improved antimeridian support #217

Closed DanielJDufour closed 1 year ago

DanielJDufour commented 1 year ago

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 commented 1 year ago

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