ST_ToGeomColl() method

Converts the geometry to a geometry collection.

Syntax

geometry-expression.ST_ToGeomColl()

Returns

ST_GeomCollection If the geometry-expression is of type ST_GeomCollection, returns the geometry-expression. If the geometry-expression is of type ST_Point, ST_Curve, or ST_Surface, then return a geometry collection containing one element, the geometry-expression. If the geometry-expression is the empty set, returns an empty set of type ST_GeomCollection. Otherwise, raises an exception condition.

Examples

Standards

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