MultiLineString Functions
These functions return properties of MultiLineString values.
GLength(mls)Returns as a double-precision number the length of the
MultiLineStringvaluemls. The length ofmlsis equal to the sum of the lengths of its elements.mysql>
SET @mls = 'MultiLineString((1 1,2 2,3 3),(4 4,5 5))';mysql>SELECT GLength(GeomFromText(@mls));+-----------------------------+ | GLength(GeomFromText(@mls)) | +-----------------------------+ | 4.2426406871193 | +-----------------------------+GLength()is a nonstandard name. It corresponds to the OpenGISLength()function.IsClosed(mls)Returns 1 if the
MultiLineStringvaluemlsis closed (that is, theStartPoint()andEndPoint()values are the same for eachLineStringinmls). Returns 0 ifmlsis not closed, and -1 if it isNULL.