Polygon with holes
Opened this issue · 2 comments
reshadman commented
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.
hannesvdvreken commented
That's possible, yes. Must take a look some time.
hannesvdvreken commented
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.