GetMGRSCoordinates

globalmapper.GetMGRSCoordinates(float aX, float aY, bool aLatLon) GM_Error_t32, string[source]

Retrieves the MGRS coordinate string for a given coordinate provided in either the current projection or as lat/lon degree coordinates.

Parameters:
  • aX (float) – point X/longitude coordinate

  • aY (float) – point 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:

The MGRS coordinates

Return type:

str