Topology - how edit node and edge vertex position

Sandro Santilli strk at kbt.io
Sat Oct 26 13:08:07 PDT 2024


On Tue, Oct 15, 2024 at 09:52:36AM +0200, Michal Seidl wrote:
> Hello,
> while looking around it looks I have found bug in returning value of
> function ST_ChangeEdgeGeom(). It should return integer but it seems the
> string 'Edge 1 changed' returns instead.
>
> https://postgis.net/docs/ST_ChangeEdgeGeom.html

Thanks, I've pushed a fix to the documentation (it's an SQL/MM defined
signature required to return TEXT, as it does).

> As a result of problem with missing fce ST_MoveNode() I have found that the
> method ST_ChangeEdgeGeom() which will allow also edit start end end point
> (under condition not causing any intersections or overlaps) will be more
> useful in my case.
> 
> The work is in process as plpgsql function.

As mentioned, ST_ChangeEdgeGeom is SQL/MM defined as required to not
allow moving start/end point. It's a policy of the topology support
to prefix with ST_ only the functions that are part of the SQL/MM
standard. Non-standard functions should drop that prefix ( for
example: MoveNodeDragConnectedEdges, ChangeEdgeGeomDragConnectedEdges )

Looking forward for your implementation, did you file that trac ticket ?
https://trac.osgeo.org/postgis/

--strk;

  Libre GIS consultant/developer
  https://strk.kbt.io/services.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20241026/1255db4b/attachment.sig>


More information about the postgis-devel mailing list