Skip to content

geoJSON Polygon Rings Cannot Share an Edge #1846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions source/core/2dsphere.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ The following example stores a GeoJSON :term:`LineString`:
``LineStrings``. Closed ``LineStrings`` have at least four coordinate
pairs and specify the same position as the first and last coordinates.

The line that joins two points on a curved surface may or may not contain
the same set of co-ordinates that joins those two points on a flat
surface. The line that joins two points on a curved surface will be a
geodesic. Carefully check points to avoid errors with shared edges, as
well as overlaps and other types of intersections.

Polygons with a Single Ring
```````````````````````````

The following example stores a GeoJSON ``Polygon`` with an exterior
ring and no interior rings (or holes). Note the first and last
coordinate pair with the ``[ 0 , 0 ]`` coordinate:
Expand All @@ -172,10 +181,10 @@ coordinate pair with the ``[ 0 , 0 ]`` coordinate:
}
}

For Polygons with a single ring:

- The ring cannot self-intersect.
For Polygons with a single ring, the ring cannot self-intersect.

Polygons with Multiple Rings
````````````````````````````

For Polygons with multiple rings:

Expand All @@ -186,7 +195,7 @@ For Polygons with multiple rings:
- Any interior ring must be entirely contained by the outer ring.

- Interior rings cannot intersect or overlap each other. Interior
rings can share an edge.
rings cannot share an edge.

The following document represents a polygon with an interior ring as
GeoJSON:
Expand Down