]> granicus.if.org Git - postgis/commitdiff
ST_AddEdgeNewFaces: another test splitting a face with holes on both sides [RT-SIGTA].
authorSandro Santilli <strk@keybit.net>
Fri, 27 May 2011 09:51:18 +0000 (09:51 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 27 May 2011 09:51:18 +0000 (09:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7270 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/regress/st_addedgenewfaces.sql
topology/test/regress/st_addedgenewfaces_expected

index 8b621dc1ec614fc757f72ff3da05426c0358d347..f5faf1e65811d8203c89af72554b9f46af24d6ba 100644 (file)
@@ -352,6 +352,18 @@ SELECT 'T22', 'E'||edge_id, next_left_edge, next_right_edge,
     UNION VALUES (2),(3) )
   ORDER BY edge_id;
 
+--
+-- Split a face containing an holes in both sides of the split
+--
+INSERT INTO newedge SELECT 23, topology.st_addedgenewfaces('city_data',
+  2, 3,  'LINESTRING(25 30, 29 32, 29 37, 25 35)');
+SELECT 'T23', 'E'||edge_id, next_left_edge, next_right_edge,
+  left_face, right_face FROM
+  city_data.edge WHERE edge_id IN ( 
+    SELECT edge_id FROM newedge WHERE id IN (13, 23, 22, 16)
+    UNION VALUES (2),(3) )
+  ORDER BY edge_id;
+
 
 ---------------------------------------------------------------------
 -- Check new relations and faces status
index 2e952b1822d9d5d1882447b44b62b347aa91c136..19098c3eb83ab3229967a8ca6c0f5de8a1727962 100644 (file)
@@ -101,6 +101,12 @@ T22|E2|3|39|37|0
 T22|E3|48|2|37|37
 T22|E42|42|-42|37|32
 T22|E48|-3|-48|37|38
+T23|E2|3|39|39|0
+T23|E3|-49|49|39|40
+T23|E39|-2|-39|0|30
+T23|E42|42|-42|39|32
+T23|E48|-3|-48|40|38
+T23|E49|48|2|40|39
 F3,F4|{3:10,3:11,3:23,3:24,3:25}
 F5,N4|{1:4,3:12,3:13}
 F0|
@@ -130,6 +136,7 @@ F33|POLYGON((35 25,35 45,63 45,63 25,35 25))
 F34|POLYGON((9 0,9 6,21 6,21 0,9 0))
 F35|POLYGON((35 0,35 6,47 6,47 0,35 0))
 F36|POLYGON((35 -4,35 6,47 6,47 -4,35 -4))
-F37|POLYGON((17 30,17 40,31 40,31 30,17 30))
 F38|POLYGON((25 34,25 35,27 35,27 34,25 34))
+F39|POLYGON((17 30,17 40,31 40,31 30,17 30))
+F40|POLYGON((25 30,25 37,29 37,29 30,25 30))
 Topology 'city_data' dropped