Skip to content

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

ParamTypeDescription
gGEOSGeometryInput 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

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryInput geometry