Maptitude GISDK Help

MoveNode()

Summary

Changes the location of an endpoint feature in a standard geographic file.

 

Syntax

id = MoveNode(integer ID, coordinate location, array options)

 

Argument Contents
ID The ID of the point to move
location The new location of the point

 

Option Type Contents
Reason String If provided, a record will be added to the database's log file, with this used as the Reason column. If it's not provided, no entry will be added, even if the other options are present.
Comment String Text for the comment field of the log file.
User String User name for the log file.

 

Returns

A string indicating the ID of the moved node.

 

Notes

Example

// Move a node to a new location

from_pt = ClickCoord()

to_pt = ClickCoord()

SetLayer("Xsection")

id = RH2ID(LocateNearestRecord(from_pt, 0.25))

MoveNode(id, to_pt, )

 

Error Codes

Error Type Meaning
Error The current layer is not an endpoint layer, or is not from a standard geographic file
NotFound There is no feature with the given ID

 

See Also

Function Summary
AddNode() Adds an endpoint feature to a standard geographic file
DeleteNode() Deletes an endpoint feature from a standard geographic file

 

 

©2025 Caliper Corporation www.caliper.com