ST_ToMultiCurve() method

Converts the geometry to a multicurve value.

Syntax

geometry-expression.ST_ToMultiCurve()

Returns

ST_MultiCurve If the geometry-expression is of type ST_MultiCurve, returns the geometry-expression. If the geometry-expression is a geometry collection containing only curves, returns a multicurve object containing the elements of the geometry-expression. If the geometry-expression is of type ST_Curve then return a multicurve 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