Skip to content

geos.GEOSPolygonize ⇒ GEOSGeometry

Polygonizes a set of Geometries which contain linework that represents the edges of a planar graph.

Kind: global property of geos
Returns: GEOSGeometry - The polygonal output geometry. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
geomsGEOSGeometryArray of linear geometries to polygons. Caller retains ownersihp of both array container and objects.
ngeomsnumberSize of the geoms array.

geos.GEOSPolygonize_full ⇒ GEOSGeometry

Perform the polygonization as GEOSPolygonize() and return the polygonal result as well as all extra outputs.

Kind: global property of geos
Returns: GEOSGeometry - The polygonal valid output Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
inputGEOSGeometryA single geometry with all the input lines to polygonize.
cutsGEOSGeometryPointer to hold "cut edges", connected on both ends but not part of output. Caller must free.
danglesGEOSGeometryPointer to hold "dangles", connected one end but not part of output. Caller must free.
invalidGEOSGeometryPointer to hold invalid outputs, polygons formed but not valid. Caller must free.

geos.GEOSPolygonize_full_r ⇒ GEOSGeometry

Perform the polygonization as GEOSPolygonize() and return the polygonal result as well as all extra outputs.

Kind: global property of geos
Returns: GEOSGeometry - The polygonal valid output Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
inputGEOSGeometryA single geometry with all the input lines to polygonize.
cutsGEOSGeometryPointer to hold "cut edges", connected on both ends but not part of output. Caller must free.
danglesGEOSGeometryPointer to hold "dangles", connected one end but not part of output. Caller must free.
invalidRingsGEOSGeometryPointer to hold invalid outputs, polygons formed but not valid. Caller must free.

geos.GEOSPolygonize_r ⇒ GEOSGeometry

Polygonizes a set of Geometries which contain linework that represents the edges of a planar graph.

Kind: global property of geos
Returns: GEOSGeometry - The polygonal output geometry. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
geomsGEOSGeometryArray of linear geometries to polygons. Caller retains ownersihp of both array container and objects.
ngeomsnumberSize of the geoms array.

geos.GEOSPolygonize_valid ⇒ GEOSGeometry

Has the same polygonizing behavior as GEOSPolygonize(), but returns a result which is a valid polygonal geometry. The result will not contain any edge-adjacent elements.

Kind: global property of geos
Returns: GEOSGeometry - The polygonal output geometry. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
geomsGEOSGeometryArray of linear geometries to polygons. Caller retains ownersihp of both array container and objects.
ngeomsnumberSize of the geoms array.

geos.GEOSPolygonize_valid_r ⇒ GEOSGeometry

Has the same polygonizing behavior as GEOSPolygonize(), but returns a result which is a valid polygonal geometry. The result will not contain any edge-adjacent elements.

Kind: global property of geos
Returns: GEOSGeometry - The polygonal output geometry. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
geomsGEOSGeometryArray of linear geometries to polygons. Caller retains ownersihp of both array container and objects.
ngemsnumberSize of the geoms array.

geos.GEOSPolygonizer_getCutEdges ⇒ GEOSGeometry

Perform the polygonization as GEOSPolygonize() but return only the "cut edges", the linear features that are connected at both ends, do not participate in the final polygon.

Kind: global property of geos
Returns: GEOSGeometry - The "cut edges" Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
geomsGEOSGeometryArray of linear geometries to polygons. Caller retains ownersihp of both array container and objects.
ngeomsnumberSize of the geoms array.

geos.GEOSPolygonizer_getCutEdges_r ⇒ GEOSGeometry

Perform the polygonization as GEOSPolygonize() but return only the "cut edges", the linear features that are connected at both ends, do not participate in the final polygon.

Kind: global property of geos
Returns: GEOSGeometry - The "cut edges" Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
geomsGEOSGeometryArray of linear geometries to polygons. Caller retains ownersihp of both array container and objects.
ngeomsnumberSize of the geoms array.