globalmapper.CalcDistance

globalmapper.CalcDistance(float aFromX, float aFromY, float aToX, float aToY, bool aLatLon) GM_Error_t32, float[source]

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.

Parameters:
  • aFromX (float) – start X/longitude coordinate

  • aFromY (float) – start Y/latitude coordinate

  • aToX (float) – stop X/longitude coordinate

  • aToY (float) – stop Y/latitude coordinate

  • aLatLon (bool) – TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Distance in meters between the points

Return type:

float