Skip to main content
replaced https://tools.ietf.org/html/rfc with https://www.rfc-editor.org/rfc/rfc
Source Link

The erratum was probably mistaken due to confusion over the fact that ESRI Shapefile and GeoJSON specify opposite winding order directions.

The shapefile spec:

The neighborhood to the right of an observer walking along the ring in vertex order is the neighborhood inside the polygon. Vertices of rings defining holes in polygons are in a counterclockwise direction. Vertices for a single, ringed polygon are, therefore, always in clockwise order.

The geojson specgeojson spec says the opposite:

A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.

(SEE https://github.com/mapbox/shp-write/pull/76)

The erratum was probably mistaken due to confusion over the fact that ESRI Shapefile and GeoJSON specify opposite winding order directions.

The shapefile spec:

The neighborhood to the right of an observer walking along the ring in vertex order is the neighborhood inside the polygon. Vertices of rings defining holes in polygons are in a counterclockwise direction. Vertices for a single, ringed polygon are, therefore, always in clockwise order.

The geojson spec says the opposite:

A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.

(SEE https://github.com/mapbox/shp-write/pull/76)

The erratum was probably mistaken due to confusion over the fact that ESRI Shapefile and GeoJSON specify opposite winding order directions.

The shapefile spec:

The neighborhood to the right of an observer walking along the ring in vertex order is the neighborhood inside the polygon. Vertices of rings defining holes in polygons are in a counterclockwise direction. Vertices for a single, ringed polygon are, therefore, always in clockwise order.

The geojson spec says the opposite:

A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.

(SEE https://github.com/mapbox/shp-write/pull/76)

Source Link
Yarin
  • 121
  • 3

The erratum was probably mistaken due to confusion over the fact that ESRI Shapefile and GeoJSON specify opposite winding order directions.

The shapefile spec:

The neighborhood to the right of an observer walking along the ring in vertex order is the neighborhood inside the polygon. Vertices of rings defining holes in polygons are in a counterclockwise direction. Vertices for a single, ringed polygon are, therefore, always in clockwise order.

The geojson spec says the opposite:

A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.

(SEE https://github.com/mapbox/shp-write/pull/76)