]> granicus.if.org Git - postgis/commitdiff
Add test for GEOMETRYCOLLECTION and ST_Split
authorSandro Santilli <strk@keybit.net>
Wed, 17 Mar 2010 08:27:26 +0000 (08:27 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 17 Mar 2010 08:27:26 +0000 (08:27 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5448 b70326c6-7e19-0410-871a-916f4a2858ee

regress/split.sql
regress/split_expected

index 385a6c390599e40a36d4c874a6ecdc068fb7887c..0397fe5440c53548187a532eb2c1d12f54e5d042 100644 (file)
@@ -57,3 +57,6 @@ select '40', st_asewkt(st_split('SRID=10;MULTILINESTRING((0 0, 10 0),(0 5, 10 5)
 
 -- Split multipolygon by line 
 select '50', st_asewkt(ST_Split('SRID=12;MULTIPOLYGON(((0 0, 10 0, 10 10, 0 10, 0 0),(2 2, 8 2, 8 4, 2 4, 2 2),(2 6,8 6,8 8,2 8,2 6)),((20 0,20 10, 30 10, 30 0, 20 0),(25 5, 28 5, 25 8, 25 5)))', 'SRID=12;LINESTRING(5 -5, 5 15)'));
+
+-- Split geometrycollection by line 
+select '60', st_asewkt(ST_Split('SRID=12;GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0, 10 0, 10 10, 0 10, 0 0),(2 2, 8 2, 8 4, 2 4, 2 2),(2 6,8 6,8 8,2 8,2 6)),((20 0,20 10, 30 10, 30 0, 20 0),(25 5, 28 5, 25 8, 25 5))),MULTILINESTRING((0 0, 10 0),(0 5, 10 5)))', 'SRID=12;LINESTRING(5 -5, 5 15)'));
index ac30bd366c13231715ed08dd70f974783e360111..b24a8ce398851c2bcd5e250b2a2bb495513bbf6f 100644 (file)
@@ -19,3 +19,4 @@ ERROR:  Splitter line has linear intersection with input
 32|SRID=10;GEOMETRYCOLLECTION(LINESTRING(0 0,10 0),LINESTRING(0 5,10 5))
 40|SRID=10;GEOMETRYCOLLECTION(LINESTRING(0 0,5 0),LINESTRING(5 0,10 0),LINESTRING(0 5,10 5))
 50|SRID=12;GEOMETRYCOLLECTION(POLYGON((5 0,0 0,0 10,5 10,5 8,2 8,2 6,5 6,5 4,2 4,2 2,5 2,5 0)),POLYGON((5 10,10 10,10 0,5 0,5 2,8 2,8 4,5 4,5 6,8 6,8 8,5 8,5 10)),POLYGON((20 0,20 10,30 10,30 0,20 0),(25 5,28 5,25 8,25 5)))
+60|SRID=12;GEOMETRYCOLLECTION(POLYGON((5 0,0 0,0 10,5 10,5 8,2 8,2 6,5 6,5 4,2 4,2 2,5 2,5 0)),POLYGON((5 10,10 10,10 0,5 0,5 2,8 2,8 4,5 4,5 6,8 6,8 8,5 8,5 10)),POLYGON((20 0,20 10,30 10,30 0,20 0),(25 5,28 5,25 8,25 5)),LINESTRING(0 0,5 0),LINESTRING(5 0,10 0),LINESTRING(0 5,5 5),LINESTRING(5 5,10 5))