ST_ToMultiLine() method

Converts the geometry to a multilinestring value.

Syntax

geometry-expression.ST_ToMultiLine()

Returns

ST_MultiLineString If the geometry-expression is of type ST_MultiLineString, returns the geometry-expression. If the geometry-expression is a geometry collection containing only lines, returns a multilinestring object containing the elements of the geometry-expression. If the geometry-expression is of type ST_LineString then return a multilinestring value containing one element, the geometry-expression. If the geometry-expression is the empty set, returns an empty set of type ST_MultiCurve. Otherwise, raises an exception condition.

Examples

Standards

SQL/MM (ISO/IEC 13249-3: 2006) 5.1.33