GM_Projection_tGetMGRSCoordinates Method
Gets the MGRS (military grid reference system) coordinates for a location

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

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

Parameters

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

Return Value

Type: GM_Error_t32
A GM Error Code
See Also