Click or drag to resize

GM_GetMGRSCoordinates

Retrieves the MGRS coordinate string for a given coordinate provided in either the current projection or as lat/lon degree coordinates. The MGRS coordinate string will be stored in the <aMgrsStr> variable, which should be a pointer to a string buffer large enough for a complete MGRS coordinates (typically 30 or so will be plenty).

Syntax
GM_Error_t32 __stdcall GM_GetMGRSCoordinates
(
double  aX,         // IN: point X/longitude coordinate
double  aY,         // IN: point Y/latitude coordinate
boolean aLatLon,    // IN: TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection?
char*   aMgrsStr    // OUT: buffer to store MGRS coordinate text in
);