From: Sandro Santilli Date: Tue, 18 Oct 2005 16:39:15 +0000 (+0000) Subject: Fixed ST_NewEdgesSplit function to return new Node id rather then text X-Git-Tag: pgis_1_1_0~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=307df8801efd8ee06307b31c6e1165dd52e2bace;p=postgis Fixed ST_NewEdgesSplit function to return new Node id rather then text git-svn-id: http://svn.osgeo.org/postgis/trunk@1970 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/topology.sql.in b/topology/topology.sql.in index 23a56b2cb..8a1538e3a 100644 --- a/topology/topology.sql.in +++ b/topology/topology.sql.in @@ -2695,7 +2695,7 @@ LANGUAGE 'plpgsql' _VOLATILE; -- ST_NewEdgesSplit(atopology, anedge, apoint) -- CREATEFUNCTION topology.ST_NewEdgesSplit(varchar, integer, geometry) - RETURNS TEXT AS + RETURNS INTEGER AS ' DECLARE atopology ALIAS FOR $1; @@ -2932,9 +2932,10 @@ BEGIN END LOOP; - RETURN ''Edge '' || anedge - || '' split in edges '' || edgeid1 - || '' and '' || edgeid2 || '' by node '' || nodeid; + RAISE NOTICE ''Edge % split in edges % and % by node %'', + anedge, edgeid1, edgeid2, nodeid; + + RETURN nodeid; END ' LANGUAGE 'plpgsql' _VOLATILE;