[postgis-users] Can't make Polygonize work

Hugo Ferreira bytter at gmail.com
Tue Dec 19 04:13:40 PST 2006


Hi,

Can someone please point me what's wrong with the following:

select AsSvg(((Dump(the_geom)).geom), 1, 1) as the_geom from (
select Polygonize(the_geom) as the_geom from (
select GeomFromText('POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))') as the_geom
union
select GeomFromText('POLYGON((1 0, 1 1, 2 1, 2 0, 1 0))') as the_geom
) a
) b

I was expecting to get only a single polygon, but instead got my original two.

Thanks in advance,

Hugo Ferreira

-- 
GPG Fingerprint: B0D7 1249 447D F5BB 22C5  5B9B 078C 2615 504B 7B85



More information about the postgis-users mailing list