GM_Utility .DecodeMGRSCoordinates Method |
Decodes a MGRS (military grid reference system) coordinate into a X/Y or lat/lon location
Namespace:GlobalMapper
Assembly: GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)

C#
Copy
public static GM_Error_t32 DecodeMGRSCoordinates(
string aMgrsStr,
out double aX,
out double aY,
bool aLatLon
)
Parameters
- aMgrsStr
-
Type:
System.String
IN: buffer with MGRS coordinate text - aX
-
Type:
System.Double
OUT: point X/longitude coordinate - aY
-
Type:
System.Double
OUT: point Y/latitude coordinate - aLatLon
-
Type:
System.Boolean
IN: TRUE - return coordinates are lat/lon, FALSE - return coordinates are in the current projection
Return Value
Type: GM_Error_t32A GM Error Code
