MultiLineString
Functions
These functions return properties of MultiLineString
values.
GLength(
mls
)Returns as a double-precision number the length of the
MultiLineString
valuemls
. The length ofmls
is 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
MultiLineString
valuemls
is closed (that is, theStartPoint()
andEndPoint()
values are the same for eachLineString
inmls
). Returns 0 ifmls
is not closed, and -1 if it isNULL
.