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

ST_NPoints

Introduction: Returns the number of points of the geometry

Format: ST_NPoints (A: Geometry)

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