ST_NUMPOINTS
Returns the count of Points in a LineString. This function calculates the total number of vertices defining the line.
Syntax
ST_NumPoints(ls)
NumPoints(ls)Description
Examples
SET @ls = 'LineString(1 1,2 2,3 3)';
SELECT NumPoints(GeomFromText(@ls));
+------------------------------+
| NumPoints(GeomFromText(@ls)) |
+------------------------------+
| 3 |
+------------------------------+Last updated
Was this helpful?

