]> granicus.if.org Git - postgis/commitdiff
Test ST_ChangeEdgeGeom with edge crossing
authorSandro Santilli <strk@keybit.net>
Tue, 24 May 2011 09:13:39 +0000 (09:13 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 24 May 2011 09:13:39 +0000 (09:13 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7228 b70326c6-7e19-0410-871a-916f4a2858ee

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

index 179bca4784ab8b82896e43ab1d8af68c6465ea3c..72e2690dc284d633537bccdc1121acb9ad834b3e 100644 (file)
@@ -21,6 +21,11 @@ SELECT topology.ST_ChangeEdgeGeom('city_data', 3,
 SELECT topology.ST_ChangeEdgeGeom('city_data', 666,
   'LINESTRING(25 30, 20 36, 20 38, 25 35)');
 
--- TODO: test edge crossing
+-- Test edge crossing
+SELECT topology.ST_ChangeEdgeGeom('city_data', 25,
+ 'LINESTRING(9 35, 11 40, 13 35)');
+
+-- TODO: test changing closed edge
+-- TODO: test reverse direction of closed edge
 
 SELECT topology.DropTopology('city_data');
index 667550ab7126408226f2f40eb24ec8a99b5ccf6b..385828afc3a3cb27078d6332f6a7b1f328cc1ca6 100644 (file)
@@ -9,4 +9,5 @@ ERROR:  SQL/MM Spatial exception - start node not geometry start point.
 ERROR:  SQL/MM Spatial exception - end node not geometry end point.
 ERROR:  SQL/MM Spatial exception - geometry crosses a node
 ERROR:  SQL/MM Spatial exception - non-existent edge 666
+ERROR:  SQL/MM Spatial exception - geometry intersects an edge
 Topology 'city_data' dropped