geos.GEOSGetNumGeometries ⇒ number
⏏
Returns the number of geometries in a collection.
Kind: Exported member
Returns: number
- The number of geometries in the collection, or -1 on exception.
Param | Type | Description |
---|---|---|
g | number | A pointer to a GEOSGeometry object of type GeometryCollection or its subclasses (MultiPoint, MultiLineString, MultiPolygon). |
geos.GEOSGetNumGeometries_r ⇒ number
⏏
Returns the number of geometries in a collection (thread-safe version).
Kind: Exported member
Returns: number
- The number of geometries in the collection, or -1 on exception.
Param | Type | Description |
---|---|---|
handle | number | A GEOS context handle created with initGEOS_r(). |
g | number | A pointer to a GEOSGeometry object of type GeometryCollection or its subclasses (MultiPoint, MultiLineString, MultiPolygon). |