mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 01:22:47 +00:00
415c0aef9b
git-svn-id: http://svn.osgeo.org/postgis/trunk@6816 b70326c6-7e19-0410-871a-916f4a2858ee
11 lines
534 B
SQL
11 lines
534 B
SQL
|
|
-- Noding a multilinestring
|
|
SELECT 1, ST_AsText(ST_UnaryUnion('MULTILINESTRING((0 0, 10 0), (5 -5, 5 5))'));
|
|
|
|
-- Unioning a set of polygons (CascadedUnion)
|
|
SELECT 2, ST_AsText(ST_UnaryUnion('GEOMETRYCOLLECTION(POLYGON((0 0, 10 0, 10 10, 0 10, 0 0)),POLYGON((5 5, 15 5, 15 15, 5 15, 5 5)))'));
|
|
|
|
-- Unioning an heterogeneous collection of geometries
|
|
SELECT 3, ST_AsText(ST_UnaryUnion('GEOMETRYCOLLECTION(POLYGON((0 0, 10 0, 10 10, 0 10, 0 0)),POLYGON((5 5, 15 5, 15 15, 5 15, 5 5)), MULTIPOINT(5 4, -5 4),LINESTRING(2 -10, 2 20))'));
|
|
|