| GM_Utility .GetMGRSCoordinates Method | 
                    Gets the MGRS (military grid reference system) coordinates for a location
                                                Namespace:GlobalMapper
                                                Assembly: GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
C#
Copy
public static GM_Error_t32 GetMGRSCoordinates(
                        double aX,
                        double aY,
                        bool aLatLon,
                        out string aMgrsStr
                )Parameters
- aX
 - 
                            Type: 
                            System.Double
IN: point X/longitude coordinate - aY
 - 
                            Type: 
                            System.Double
IN: point Y/latitude coordinate - aLatLon
 - 
                            Type: 
                            System.Boolean
IN: TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection? - aMgrsStr
 - 
                            Type: 
                            System.String
OUT: MGRS coordinate text 
Return Value
Type: GM_Error_t32A GM Error Code