- Categories:
ST_UNION_AGG¶
Given a GEOGRAPHY column, returns a GEOGRAPHY object that represents the combined set of points that are in at least one of the shapes represented by the objects in the column (that is, the union of the shapes).
- See also:
Syntax¶
Arguments¶
geography_columnA GEOGRAPHY column.
Returns¶
The function returns a value of type GEOGRAPHY.
Examples¶
Create a table with a GEOMETRY column and insert data:
Use the ST_UNION_AGG function to return a GEOGRAPHY object that represents the combined set of points that are in at least one of the shapes represented by the objects in the GEOGRAPHY column: