Click or drag to resize

GM_UtilityDecodeMGRSCoordinates 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)
Syntax
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