[postgis-users] Split multiple overlapping polygons to polygons that do not overlap.

Moen, Paul T. pmoen at nd.gov
Thu Oct 22 09:24:11 PDT 2009


I have a set of polygons.

INSERT INTO test(gid,the_geom) VALUES (1,st_geomfromtext('MULTIPOLYGON 
(((1 5,1 9,5 9,5 5,1 5)))',2266));
INSERT INTO test(gid,the_geom) VALUES (2,st_geomfromtext('MULTIPOLYGON 
(((4 2,4 6,8 6,8 2,4 2)))',2266));
INSERT INTO test(gid,the_geom) VALUES (3,st_geomfromtext('MULTIPOLYGON 
(((4 3,4 6,7 6,7 3,4 3)))',2266));
INSERT INTO test(gid,the_geom) VALUES (4,st_geomfromtext('MULTIPOLYGON 
(((4 5,4 8,7 8,7 5,4 5)))',2266));
INSERT INTO test(gid,the_geom) VALUES (5,st_geomfromtext('MULTIPOLYGON 
(((2 3,2 6,5 6,5 3,2 3)))',2266));
They look like the image below with the transparency set so the  
overlaps are visible.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sm_original.png
Type: image/png
Size: 3088 bytes
Desc: sm_original.png
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20091022/1685d097/attachment.png>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20091022/1685d097/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sm_output.png
Type: image/png
Size: 3334 bytes
Desc: sm_output.png
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20091022/1685d097/attachment-0001.png>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00002.txt
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20091022/1685d097/attachment-0001.txt>


More information about the postgis-users mailing list