From: Sandro Santilli Date: Fri, 27 May 2011 09:51:18 +0000 (+0000) Subject: ST_AddEdgeNewFaces: another test splitting a face with holes on both sides [RT-SIGTA]. X-Git-Tag: 2.0.0alpha1~1544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e5e8423d8d67a196f73ac146d9bd9a3459449a7;p=postgis ST_AddEdgeNewFaces: another test splitting a face with holes on both sides [RT-SIGTA]. git-svn-id: http://svn.osgeo.org/postgis/trunk@7270 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/test/regress/st_addedgenewfaces.sql b/topology/test/regress/st_addedgenewfaces.sql index 8b621dc1e..f5faf1e65 100644 --- a/topology/test/regress/st_addedgenewfaces.sql +++ b/topology/test/regress/st_addedgenewfaces.sql @@ -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 diff --git a/topology/test/regress/st_addedgenewfaces_expected b/topology/test/regress/st_addedgenewfaces_expected index 2e952b182..19098c3eb 100644 --- a/topology/test/regress/st_addedgenewfaces_expected +++ b/topology/test/regress/st_addedgenewfaces_expected @@ -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