Global Mapper SDK
| GM_Projection_t .DecodeMGRSCoordinates Method |
Decodes a MGRS (military grid reference system) coordinate into a X/Y or lat/lon location
Namespace:GlobalMapper.Types
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)
C#
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
Comments
0 comments
Please sign in to leave a comment.