ST_MoveIsoNode
Name
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.
Synopsis
text
ST_MoveIsoNode
(
varchar
atopology
, integer
anedge
, 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) 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.
Availability: 1.?
This method implements the SQL/MM specification. SQL-MM: Topo-Net Routines: X.3.2
Examples
-- 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