]> granicus.if.org Git - postgis/commitdiff
Add another test for ST_ChangeEdgeGeom
authorSandro Santilli <strk@keybit.net>
Fri, 17 Feb 2012 14:03:28 +0000 (14:03 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 17 Feb 2012 14:03:28 +0000 (14:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9225 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/regress/st_changeedgegeom.sql
topology/test/regress/st_changeedgegeom_expected

index 1dd157ec20760180a37d9c8e421e2eb87c703752..4902def1b3267bf2363dcda7a6fc6a6785e8c970 100644 (file)
@@ -70,8 +70,11 @@ SELECT topology.ST_ChangeEdgeGeom('city_data', 26,
 SELECT 'T8', topology.ST_ChangeEdgeGeom('city_data', 26,
  'LINESTRING(4 31, 4 30.4, 5 30.4, 4 31)');
 
+-- test changing winding of non-closed edge ring
+SELECT topology.ST_ChangeEdgeGeom('city_data', 13,
+ 'LINESTRING(21 6, 21 2, 6 2, 6 25, 50 25, 50 2, 35 2, 35 6)');
+
 -- TODO: test moving closed edge into another face
--- TODO: test changing winding of non-closed edge ring
 -- TODO: test face mbr update
 
 SELECT topology.DropTopology('city_data');
index 3080081a81a6b71f71ef4929ffd1e9234a14511a..cc2e55b1c00c65bf6405fb97607a64822db9e092 100644 (file)
@@ -21,4 +21,5 @@ T7|Edge 2 changed
 ERROR:  Edge motion collision at POINT(25 35)
 ERROR:  Edge twist at node POINT(4 31)
 T8|Edge 26 changed
+ERROR:  Edge motion collision at POINT(9 6)
 Topology 'city_data' dropped