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 POINTs in the column of Geometries, a MULTIPOINT is returned. Same process with LINESTRINGs and POLYGONs.
Warning
This function is an alias for ST_Accum. For more details, please consult this page.