Skip to content

geos.GEOSGetGeometryN ⇒ number

Returns the specified sub-geometry of a collection. For a simple geometry, returns a pointer to the input. Returned object is a pointer to internal storage: it must NOT be destroyed directly.

Kind: global property of geos
Returns: number - A const GEOSGeometry, do not free! It will be freed when the parent is freed. Returns NULL on exception.

ParamTypeDescription
gGEOSGeometryInput geometry
nnumberSub-geometry index, zero-based

geos.GEOSGetGeometryN_r ⇒ number

Returns the specified sub-geometry of a collection. For a simple geometry, returns a pointer to the input. Returned object is a pointer to internal storage: it must NOT be destroyed directly.

Kind: global property of geos
Returns: number - A const GEOSGeometry, do not free! It will be freed when the parent is freed. Returns NULL on exception.

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryInput geometry
nnumberSub-geometry index, zero-based