From aef31268772fb80c6b8912e2ae771fd1a3b1a24c Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 24 May 2011 09:22:12 +0000 Subject: [PATCH] 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 --- topology/sql/sqlmm.sql | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.50.1