Maptitude GISDK Help |
Returns the IDs of the two endpoints of a link.
node_ids = GetEndpoints(integer link_id)
Argument |
Contents |
link_id |
The ID of a link |
A two-element array of the endpoint IDs in their topological order. That is, the ID of the endpoint that appears first along the line as it was digitized occurs first in the returned array.
GetEndpoints() works only when the current layer is a line layer.
// This macro gets a list of the endpoints for a line
SetLayer("Streets")
id = RH2ID(LocateNearestRecord(ClickCoord(), 0.25))
node_list = GetEndpoints(id)
Error Type |
Meaning |
Error |
The current layer is of the wrong type |
NotFound |
There is no link with this ID in the current layer |
Function |
Summary |
Gets the IDs of links that begin or end at a node |
|
Gets the name of the link layer associated with a node layer |
|
Gets the name of the node layer associated with a link layer |
©2025 Caliper Corporation | www.caliper.com |