You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2024. It is now read-only.
It would be very useful to have a mode, perhaps not the default, that validates polygon geometry.
Winding order
No self-intersection
No holes intersecting/outside the outer ring
The validation should be at least strong enough to guarantee that any passing polygon is suitable for processing by geojson-vt. Then we could check incoming bug reports like mapbox/mapbox-gl-js#3074, mapbox/mapbox-gl-js#3032, and mapbox/mapbox-gl-js#3080 against it, point the submitters to geojsonhint when their data turns out to be invalid, and perhaps even embed it in mapbox-gl-js as a GeoJSON source preflight mechanism.