diagonalworks / diagonal-b6

b6: Diagonal's geospatial analysis engine.
Apache License 2.0
24 stars 3 forks source link

Improve the robustness of polygons imported via gdal. #293

Closed andreweland closed 3 months ago

andreweland commented 3 months ago

When importing polygons via gdal, automatically invert loops representing polygons larger than half of the Earth's surface. Add a command line flag to disable this, in case these polygons are expected (instead of being the result of incorrect polygon winding order - the common case). Additionally, verify that loop geometry is still valid once it's marshalled into the compact world. In rare cases, quantisation during point conversion and invalidate geometry, and if this happens, we drop the loop.

xprogramari commented 3 months ago

lgtm ðŸ«