ST_Union

This section contains reference documentation for the ST_Union function.

An aggregation function that returns a MULTI geometry or NON-MULTI geometry from a set of geometries. It ignores NULL geometries.

Signature

ST_Union(geometry[])

Usage Examples

These examples are based on the Streaming Quick Start.

select group_city, ST_AsText(STUnion(location)) AS unionString
from meetupRsvp 
GROUP BY group_city
ORDER BY STUnion(location) DESC
LIMIT 5

Last updated