From: Sandro Santilli Date: Tue, 24 May 2011 09:22:12 +0000 (+0000) Subject: Add TODO item and SQL/MM compatibility note in ST_ChangeEdgeGeom X-Git-Tag: 2.0.0alpha1~1584 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aef31268772fb80c6b8912e2ae771fd1a3b1a24c;p=postgis Add TODO item and SQL/MM compatibility note in ST_ChangeEdgeGeom git-svn-id: http://svn.osgeo.org/postgis/trunk@7229 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/sql/sqlmm.sql b/topology/sql/sqlmm.sql index e82ccf82b..bd022c9c8 100644 --- a/topology/sql/sqlmm.sql +++ b/topology/sql/sqlmm.sql @@ -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;