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

ST_NPoints

Introduction: Returns the number of points of the geometry

ST_NPoints

Format: ST_NPoints (A: Geometry)

Return type: Integer

Since: v1.3.0

Example:

SELECT ST_NPoints(ST_GeomFromText('LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)'))

Output:

4