ST_STARTPOINT
Returns the start Point of a LineString. This function retrieves the initial coordinate in the linear geometry sequence.
Syntax
ST_StartPoint(ls)
StartPoint(ls)Description
Examples
SET @ls = 'LineString(1 1,2 2,3 3)';
SELECT AsText(StartPoint(GeomFromText(@ls)));
+---------------------------------------+
| AsText(StartPoint(GeomFromText(@ls))) |
+---------------------------------------+
| POINT(1 1) |
+---------------------------------------+Last updated
Was this helpful?

