]> granicus.if.org Git - postgis/commitdiff
Fix ST_ModEdgeSplit documentation (#2633)
authorSandro Santilli <strk@keybit.net>
Tue, 4 Feb 2014 08:34:54 +0000 (08:34 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 4 Feb 2014 08:34:54 +0000 (08:34 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12215 b70326c6-7e19-0410-871a-916f4a2858ee

doc/extras_topology.xml

index 509302f891e1556fdf8ca0a2341886a86559ee49..fe05598c0728024ed94943b9c812a9abeffce13c 100644 (file)
@@ -1308,7 +1308,7 @@ an error is thrown.
                        <refsynopsisdiv>
                                <funcsynopsis>
                                        <funcprototype>
-                                       <funcdef>text <function>ST_ModEdgeSplit</function></funcdef>
+                                       <funcdef>integer <function>ST_ModEdgeSplit</function></funcdef>
                                        <paramdef><type>varchar </type> <parameter>atopology</parameter></paramdef>
                                        <paramdef><type>integer </type> <parameter>anedge</parameter></paramdef>
                                        <paramdef><type>geometry </type> <parameter>apoint</parameter></paramdef>
@@ -1323,6 +1323,7 @@ an error is thrown.
 Split an edge by creating a new node along an existing edge,
 modifying the original edge and adding a new edge.
 Updates all existing joined edges and relationships accordingly.
+Returns the identifier of the newly added node.
                </para>
 
                 <!-- use this format if new function -->
@@ -1343,8 +1344,8 @@ Updates all existing joined edges and relationships accordingly.
 
 
 -- Split the edge  --
-SELECT topology.ST_ModEdgeSplit('ma_topo',  3, ST_SetSRID(ST_Point(227594,893910),26986)  ) As result;
-         result
+SELECT topology.ST_ModEdgeSplit('ma_topo',  3, ST_SetSRID(ST_Point(227594,893910),26986)  ) As node_id;
+        node_id
 -------------------------
 7
 </programlisting>