Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.
This repository was archived by the owner on May 29, 2024. It is now read-only.

validate polygon geometry #48

@jfirebaugh

Description

@jfirebaugh

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.

cc @tmcw @mourner @lucaswoj @springmeyer @mapsam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions