]> granicus.if.org Git - postgis/commitdiff
Add another (successful) test for ST_AddEdgeNewFaces when creating a new face in...
authorSandro Santilli <strk@keybit.net>
Tue, 24 May 2011 10:45:40 +0000 (10:45 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 24 May 2011 10:45:40 +0000 (10:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7230 b70326c6-7e19-0410-871a-916f4a2858ee

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

index 986c36048f84b3614da9182f0256edf4a0ff2f45..f8b7de7efcc02b6d0ac5ae1c595143258d5600ce 100644 (file)
@@ -296,6 +296,17 @@ SELECT 'T18', 'E'||edge_id, next_left_edge, next_right_edge,
   ( SELECT edge_id FROM newedge WHERE id = 17 ) )
   ORDER BY edge_id;
 
+--
+-- New face in universal face, with both endpoints on same existing edge
+--
+INSERT INTO newedge SELECT 19, topology.st_addedgenewfaces('city_data',
+  9, 8,  'LINESTRING(21 6, 12 0, 9 6)');
+SELECT 'T19', 'E'||edge_id, next_left_edge, next_right_edge,
+  left_face, right_face FROM
+  city_data.edge WHERE edge_id IN ( 12, 35, 22,
+  ( SELECT edge_id FROM newedge WHERE id = 19 ) )
+  ORDER BY edge_id;
+
 ---------------------------------------------------------------------
 -- Check new relations and faces status
 ---------------------------------------------------------------------
index a53f10928f3cdc9d508bb23d8d590e9fd1cb1e0b..fda3d55cbe16d913f16285d899941c6a0fe98826 100644 (file)
@@ -82,6 +82,10 @@ N26|
 T18|E4|-5|4|33|33
 T18|E5|-4|5|33|33
 T18|E43|-44|44|33|0
+T19|E12|-31|-45|20|34
+T19|E22|37|32|0|21
+T19|E35|35|45|26|0
+T19|E45|22|-12|0|34
 F3,F4|{3:10,3:11,3:23,3:24,3:25}
 F5,N4|{1:4,3:12,3:13}
 F0|
@@ -109,4 +113,5 @@ F30|POLYGON((22 27,22 30,28 30,28 27,22 27))
 F31|POLYGON((17 30,17 40,31 40,31 30,17 30))
 F32|POLYGON((20 34,20 37,23 37,23 34,20 34))
 F33|POLYGON((35 25,35 45,63 45,63 25,35 25))
+F34|POLYGON((9 0,9 6,21 6,21 0,9 0))
 Topology 'city_data' dropped