Maptitude GISDK Help |
Gets the coordinates that describe the location of a multiple part line feature.
pts = GetMultiLine(integer id)
Argument |
Contents |
id |
The ID of the line feature |
An array of arrays of coordinates in their topological order, one sub-array for each part of the line. The from node is the first coordinate and the to node is the last coordinate in a sub-array.
The current layer must be a line layer.
Some types of layers, such as Esri Shapefiles, can have lines with multiple parts. GetLine() indicates this with the NonUnique error. Use GetMultiLine() to get the coordinates for lines from layers of these types.
pts = GetMultiLine(123)
dist = 0
for j = 1 to pts.length do
for i = 1 to pts[j].length - 1 do
dist = dist + GetDistance(pts[j][i], pts[j][i + 1])
end
end
ShowMessage("The length of the line is " + String(dist))
Error Type |
Meaning |
Error |
Layer is not the correct type |
NotFound |
No line feature exists with the given ID |
Function |
Summary |
Gets the coordinates that describe the location of a line feature |
|
Gets the location of the point feature with the specified ID |
|
Get the coordinates that describe an area feature |
©2025 Caliper Corporation | www.caliper.com |