GLENGTH
Synonym for ST_LENGTH. Calculates the length of a LineString or MultiLineString in its associated spatial reference units.
Syntax
GLength(ls)Description
Examples
SET @ls = 'LineString(1 1,2 2,3 3)';
SELECT GLength(GeomFromText(@ls));
+----------------------------+
| GLength(GeomFromText(@ls)) |
+----------------------------+
| 2.82842712474619 |
+----------------------------+See Also
Last updated
Was this helpful?

