geometry_column –
The geometry values to generate the collection. Typically this is a column.
Returns
ST_MultiPoint Returns a multipoint that contains all of the geometries in a group.
Examples
Example 1 –
The following example returns a single value which combines all geometries of type ST_Point from the SpatialShapes table into a single collection of type ST_MultiPoint. If the Shape column was of type ST_Point then the TREAT function and WHERE clause would not be necessary.
SELECT ST_MultiPoint::ST_MultiPointAggr( TREAT( Shape AS ST_Point ) )
FROM SpatialShapes WHERE Shape IS OF( ST_Point )