Maptitude GISDK Help |
Changes the location of an endpoint feature in a standard geographic file.
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. |
A string indicating the ID of the moved node.
The endpoint layer must be the current layer.
If any line features are attached to the endpoint, they are updated as well.
The log file name will have the same name as the database and a .txt extension.
// 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 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 |
Function |
Summary |
Adds an endpoint feature to a standard geographic file |
|
Deletes an endpoint feature from a standard geographic file |
©2025 Caliper Corporation | www.caliper.com |