geocaml / ocaml-geojson

A library for manipulating, creating and parsing GeoJSON
https://geocaml.github.io/ocaml-geojson
Other
38 stars 10 forks source link

Make correction to depict the appropriate ring(interior or exterior) in Polygon's module #42

Closed streetCoderr closed 2 years ago

streetCoderr commented 2 years ago

Made minor correction to the Polygon module based on GeoJSON specification of the Polygon type. An excerpt is provided below.

For Polygons with more than one of these rings, the first MUST be the exterior ring, and any others MUST be interior rings. The exterior ring bounds the surface, and the interior rings (if present) bound holes within the surface.

patricoferris commented 2 years ago

Thanks!