Files
crankshaft/pg/test/0.0.1/sql/05_cdb_union_adjacent_test.sql
2016-02-24 13:51:18 -05:00

10 lines
305 B
PL/PgSQL

\i test/fixtures/touching_polygons.sql
WITH joined_polygons AS (
SELECT cdb_union_adjacent(the_geom) the_geom FROM touching_polygons
),
unnested_polygons as (
select unnest(joined_polygons.the_geom) the_geom from joined_polygons
)
select ST_ASTEXT(unnested_polygons.the_geom) from unnested_polygons;