ST_ToMultiSurface() method

Converts the geometry to a multi-surface value.

Syntax

geometry-expression.ST_ToMultiSurface()

Returns

ST_MultiSurface If the geometry-expression is of type ST_MultiSurface, returns the geometry-expression. If the geometry-expression is a geometry collection containing only surfaces, returns a multi-surface object containing the elements of the geometry-expression. If the geometry-expression is of type ST_Surface then return a multi-surface value containing one element, the geometry-expression. If the geometry-expression is the empty set, returns an empty set of type ST_MultiSurface. Otherwise, raises an exception condition.

Examples

Standards

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