geos.GEOSGetNumGeometries ⇒ number
⏏
Returns the number of sub-geometries immediately under a multi-geometry or collection or 1 for a simple geometry. For nested collections, remember to check if returned sub-geometries are themselves also collections. Empty collection or multi-geometry types return 0, and empty simple geometry types return 1.
Kind: global property of geos
Returns: number
- Number of direct children in this collection
Param | Type | Description |
---|---|---|
g | GEOSGeometry | Input geometry |
geos.GEOSGetNumGeometries_r ⇒ number
⏏
Returns the number of sub-geometries immediately under a multi-geometry or collection or 1 for a simple geometry. For nested collections, remember to check if returned sub-geometries are themselves also collections. Empty collection or multi-geometry types return 0, and empty simple geometry types return 1.
Kind: global property of geos
Returns: number
- Number of direct children in this collection
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | Input geometry |