pip icon indicating copy to clipboard operation
pip copied to clipboard

Polygon with holes

Open reshadman opened this issue 10 years ago • 2 comments

The format that Polygon class accepts, is the exterior part of a polygon. The GeoJson design accpets multiple collections of lat/long collections which the first one describes the exterior part and other optional parts include holes in the polygon. Which says that Polygon class does not work with GeoJson specs.

reshadman avatar Aug 09 '15 10:08 reshadman

That's possible, yes. Must take a look some time.

hannesvdvreken avatar Aug 09 '15 10:08 hannesvdvreken

To know wether a point lies within a Polygon, one can build a tree of Polygons based on whether they are cutouts or not and whether the point lies in each Polygon or not, that the point is within the MultiPolygon.

hannesvdvreken avatar Oct 21 '15 09:10 hannesvdvreken