Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

ST_NumGeometries

Introduction: Returns the number of Geometries. If geometry is a GEOMETRYCOLLECTION (or MULTI*) return the number of geometries, for single geometries will return 1.

ST_NumGeometries

Format: ST_NumGeometries (A:geometry)

Return type: Integer

SELECT ST_NumGeometries(df.geometry)
FROM df