Skip to content

kinks possible false positives on Yosemite polygon #2919

@benjaminblack

Description

@benjaminblack

This polygon geometry for Yosemite has a hole in it at (-119.84323,37.83471) where it overlaps with Stanislaus National Forest. The polygon is otherwise valid, but the inner ring causes kinks to return four self-intersections due to the corner at (-119.84566, 37.83285). But the inner ring is a self-tangency, not a self-intersection, so it seems like there should be no kinks.

Whether self-tangency makes a polygon "invalid" is apparently a point of contention; relevant spec links:

  • OGC: "Rings may not touch other rings, except at a point." (as in this case)
  • Mapbox: "Linear rings MUST be geometric objects that have no anomalous geometric points, such as self-intersection or self-tangency."

yosemite-national-park.json

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions