GM_UtilityCalcDistance Method |
Calculates the great-circle distance in meters between two points. The points
can either be specified as lat/lon values or in the current projection.
Namespace:
GlobalMapper
Assembly:
GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax public static GM_Error_t32 CalcDistance(
double aFromX,
double aFromY,
double aToX,
double aToY,
bool aLatLon,
out double aDist
)
Public Shared Function CalcDistance (
aFromX As Double,
aFromY As Double,
aToX As Double,
aToY As Double,
aLatLon As Boolean,
<OutAttribute> ByRef aDist As Double
) As GM_Error_t32
public:
static GM_Error_t32 CalcDistance(
double aFromX,
double aFromY,
double aToX,
double aToY,
bool aLatLon,
[OutAttribute] double% aDist
)
Parameters
- aFromX
- Type: SystemDouble
IN: start X/longitude coordinate - aFromY
- Type: SystemDouble
IN: start Y/latitude coordinate - aToX
- Type: SystemDouble
IN: stop X/longitude coordinate - aToY
- Type: SystemDouble
IN: stop Y/latitude coordinate - aLatLon
- Type: SystemBoolean
IN: TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection? - aDist
- Type: SystemDouble
OUT: distance in meters between the points
Return Value
Type:
GM_Error_t32A GM Error Code
See Also