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.
Param | Type | Description |
---|---|---|
g | GEOSGeometry | Input geometry |
n | number | Sub-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.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | Input geometry |
n | number | Sub-geometry index, zero-based |