DecodeMGRSCoordinates

globalmapper.DecodeMGRSCoordinates(string aMgrsStr, bool aLatLon) GM_Error_t32, float, float[source]

Decodes a MGRS (military grid reference system) coordinate into a X/Y or lat/lon location

Parameters:
  • aMgrsStr (str) – buffer with MGRS coordinate text

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

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Point X/longitude coordinate

Return type:

float

Returns:

Point Y/latitude coordinate

Return type:

float