Maptitude GISDK Help |
Finds the distance from a coordinate to a line.
dist = GetLineDistance(coord c, array shape_pts)
Argument |
Contents |
c |
The coordinate |
shape_pts |
The array of shape points in the line |
An array of three elements:
Element |
Type |
Contents |
1 |
Real |
The distance to the closest line segment |
2 |
Coord |
The coordinate on the segment that is closest to the point |
3 |
Integer |
The index of the shape point in the array that forms the beginning of the closest line segment (1 <= index < shape_pts.length) |
Use GetLine() to get the array of shape points in the line.
Function |
Summary |
Computes the great circle distance between two coordinates |
|
Computes distances and statistics from each point in a set of origins to each point in a set of destinations |
|
Gets the coordinates that describe the location of a line feature |
|
Finds the nearest line feature to a point and returns information about it |
©2025 Caliper Corporation | www.caliper.com |