]> granicus.if.org Git - postgis/commitdiff
Add TODO item and SQL/MM compatibility note in ST_ChangeEdgeGeom
authorSandro Santilli <strk@keybit.net>
Tue, 24 May 2011 09:22:12 +0000 (09:22 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 24 May 2011 09:22:12 +0000 (09:22 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7229 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/sqlmm.sql

index e82ccf82bbab3907e2673ac95c85d2ce50aa5920..bd022c9c85eba01ff843aff59cc8eb7eec0e7580 100644 (file)
@@ -1734,6 +1734,11 @@ LANGUAGE 'plpgsql' VOLATILE;
 -- X.3.6
 --
 --  ST_ChangeEdgeGeom(atopology, anedge, acurve)
+--
+-- Not in the specs:
+-- * Raise an exception if given a non-existent edge
+--
+-- TODO: allow changing geometry of a closed edge (#982)
 -- 
 CREATE OR REPLACE FUNCTION topology.ST_ChangeEdgeGeom(atopology varchar, anedge integer, acurve geometry)
   RETURNS TEXT AS
@@ -1786,6 +1791,7 @@ BEGIN
       || ' WHERE edge_id = ' || anedge
     INTO STRICT oldedge;
   EXCEPTION
+    -- NOT IN THE SPECS: check given edge existance
     WHEN NO_DATA_FOUND THEN
       RAISE EXCEPTION 'SQL/MM Spatial exception - non-existent edge %', anedge;
   END;