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

Namespace:  GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
public static GM_Error_t32 DecodeMGRSCoordinates(
	string aMgrsStr,
	out double aX,
	out double aY,
	bool aLatLon
)

Parameters

aMgrsStr
Type: SystemString
IN: buffer with MGRS coordinate text
aX
Type: SystemDouble
OUT: point X/longitude coordinate
aY
Type: SystemDouble
OUT: point Y/latitude coordinate
aLatLon
Type: SystemBoolean
IN: TRUE - return coordinates are lat/lon, FALSE - return coordinates are in the current projection

Return Value

Type: GM_Error_t32
A GM Error Code
See Also