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
)
Public Shared Function DecodeMGRSCoordinates (
aMgrsStr As String,
<OutAttribute> ByRef aX As Double,
<OutAttribute> ByRef aY As Double,
aLatLon As Boolean
) As GM_Error_t32
public:
static GM_Error_t32 DecodeMGRSCoordinates(
String^ aMgrsStr,
[OutAttribute] double% aX,
[OutAttribute] 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_t32A GM Error Code
See Also