ST_Collect
Signatures
MULTIPOINT ST_Collect(POINT geom);
MULTILINESTRING ST_Collect(LINESTRING geom);
MULTIPOLYGON ST_Collect(POLYGON geom);
GEOMETRYCOLLECTION ST_Collect(GEOMETRY geom);
Description
This aggregate function constructs a GEOMETRYCOLLECTION
from a column of mixed dimension Geometries.
If there is only POINT
s in the column of Geometries, a MULTIPOINT
is returned. Same process with LINESTRING
s and POLYGON
s.