From f4b9367a55b3d75b47f3faf9fbf68580e102c6a0 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 24 May 2011 09:13:39 +0000 Subject: [PATCH] Test ST_ChangeEdgeGeom with edge crossing git-svn-id: http://svn.osgeo.org/postgis/trunk@7228 b70326c6-7e19-0410-871a-916f4a2858ee --- topology/test/regress/st_changeedgegeom.sql | 7 ++++++- topology/test/regress/st_changeedgegeom_expected | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/topology/test/regress/st_changeedgegeom.sql b/topology/test/regress/st_changeedgegeom.sql index 179bca478..72e2690dc 100644 --- a/topology/test/regress/st_changeedgegeom.sql +++ b/topology/test/regress/st_changeedgegeom.sql @@ -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'); diff --git a/topology/test/regress/st_changeedgegeom_expected b/topology/test/regress/st_changeedgegeom_expected index 667550ab7..385828afc 100644 --- a/topology/test/regress/st_changeedgegeom_expected +++ b/topology/test/regress/st_changeedgegeom_expected @@ -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 -- 2.50.1