ST_MoveIsoNode — Moves an isolated node in a topology from one point to another. If new apoint geometry exists as a node an error is thrown. Returns description of move.
text ST_MoveIsoNode(varchar atopology, bigint anode, geometry apoint);
Move um nó isolado em uma topologia de um ponto para outro. Se nova geometria apoint existe como um nó, um erro é lançado.
If any arguments are null, the apoint is not a point, the existing node is not isolated (is a start or end point of an existing edge), new node location intersects an existing edge (even at the end points) or the new location is in a different face (since 3.2.0) then an exception is thrown.
Se o sistema de referência espacial (srid) da geometria pontual não for o mesmo da topologia, uma exceção é lançada.
Disponibilidade: 2.0.0
Enhanced: 3.2.0 ensures the nod cannot be moved in a different face
This method implements the SQL/MM specification. SQL-MM: Topo-Net Routines: X.3.2
-- Add an isolated node with no face --
SELECT topology.ST_AddIsoNode('ma_topo', NULL, ST_GeomFromText('POINT(227579 893916)', 26986) ) As nodeid;
nodeid
--------
7
-- Move the new node --
SELECT topology.ST_MoveIsoNode('ma_topo', 7, ST_GeomFromText('POINT(227579.5 893916.5)', 26986) ) As descrip;
descrip
----------------------------------------------------
Isolated Node 7 moved to location 227579.5,893916.5