Nombre

ST_Multi — Devuelve la geometría como una geometría MULTI*.

Sinopsis

geometry ST_Multi(geometry geom);

Descripción

Returns the geometry as a MULTI* geometry collection. If the geometry is already a collection, it is returned unchanged.

Ejemplos

A Polygon is converted to a single-element MultiPolygon. The coordinates are unchanged.

Code
SELECT ST_Multi('POLYGON ((10 30,30 30,30 10,10 10,10 30))');
Output
MULTIPOLYGON(((10 30,30 30,30 10,10 10,10 30)))
Figure
Geometry figure for visual-st-multi-01

Ver también

ST_AsText