GLength(ls)

GLength() is a nonstandard name. It corresponds to the OpenGIS
ST_Length() function. (There is an existing SQL function Length() that
calculates the length of string values.)

URL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html

