Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

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.

Format: ST_NumGeometries (A:geometry)

SELECT ST_NumGeometries(df.geometry)
FROM df