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().
Param | Type | Description |
---|---|---|
geoms | GEOSGeometry | Array of linear geometries to polygons. Caller retains ownersihp of both array container and objects. |
ngeoms | number | Size 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().
Param | Type | Description |
---|---|---|
input | GEOSGeometry | A single geometry with all the input lines to polygonize. |
cuts | GEOSGeometry | Pointer to hold "cut edges", connected on both ends but not part of output. Caller must free. |
dangles | GEOSGeometry | Pointer to hold "dangles", connected one end but not part of output. Caller must free. |
invalid | GEOSGeometry | Pointer 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().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
input | GEOSGeometry | A single geometry with all the input lines to polygonize. |
cuts | GEOSGeometry | Pointer to hold "cut edges", connected on both ends but not part of output. Caller must free. |
dangles | GEOSGeometry | Pointer to hold "dangles", connected one end but not part of output. Caller must free. |
invalidRings | GEOSGeometry | Pointer 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().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
geoms | GEOSGeometry | Array of linear geometries to polygons. Caller retains ownersihp of both array container and objects. |
ngeoms | number | Size 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().
Param | Type | Description |
---|---|---|
geoms | GEOSGeometry | Array of linear geometries to polygons. Caller retains ownersihp of both array container and objects. |
ngeoms | number | Size 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().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
geoms | GEOSGeometry | Array of linear geometries to polygons. Caller retains ownersihp of both array container and objects. |
ngems | number | Size 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().
Param | Type | Description |
---|---|---|
geoms | GEOSGeometry | Array of linear geometries to polygons. Caller retains ownersihp of both array container and objects. |
ngeoms | number | Size 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().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
geoms | GEOSGeometry | Array of linear geometries to polygons. Caller retains ownersihp of both array container and objects. |
ngeoms | number | Size of the geoms array. |