Nome

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.

Sinossi

text ST_MoveIsoNode(varchar atopology, bigint anode, geometry apoint);

Description

Moves an isolated node in a topology from one point to another. If new apoint geometry exists as a node an error is thrown.

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.

If the spatial reference system (srid) of the point geometry is not the same as the topology an exception is thrown.

Disponibilità: 2.0.0

Enhanced: 3.2.0 ensures the nod cannot be moved in a different face

Questo metodo implementa la specifica SQL/MM. SQL-MM: Topo-Net Routines: X.3.2

Esempi

Add an isolated node with no face.

Code
SELECT topology.ST_AddIsoNode('ma_topo', NULL, ST_GeomFromText('POINT(227579 893916)', 26986)) AS nodeid;
Output
7

Move the new node.

Code
SELECT topology.ST_MoveIsoNode('ma_topo', 7, ST_GeomFromText('POINT(227579.5 893916.5)', 26986)) AS descrip;
Output
Isolated Node 7 moved to location 227579.5,893916.5

Si veda anche

ST_AddIsoNode