ArcGIS Runtime SDK for WPF - Library Reference
MgrsToMapPoint Method
See Also 
ESRI.ArcGIS.Client.Geometry Namespace > CoordinateConversion Class : MgrsToMapPoint Method

mgrsCoordinate
A System.String representing the coordinate notation to be converted.
spatialReference
A SpatialReference representing the geographic or projected coordinate system of the returned MapPoint.
conversionMode
A MgrsConversionMode value determining the spheroid used in the conversion and the zone in which the 180 longitude falls.
Converts a coordinate notation string in the Military Grid Reference System (MGRS) format to a MapPoint geometry with the specified spatial reference.

Syntax

Visual Basic (Declaration) 
Public Shared Function MgrsToMapPoint( _
   ByVal mgrsCoordinate As String, _
   ByVal spatialReference As SpatialReference, _
   ByVal conversionMode As MgrsConversionMode _
) As MapPoint
C# 
public static MapPoint MgrsToMapPoint( 
   string mgrsCoordinate,
   SpatialReference spatialReference,
   MgrsConversionMode conversionMode
)

Remarks

The Military Grid Reference System (MGRS) is a grid-based system used to represent locations on the universal transverse Mercator (UTM) and universal polar stereographic (UPS) grid systems, expressed as an alphanumeric string. An MGRS coordinate defines an area on the Earth's surface as opposed to a specific point. A fully qualified MGRS string is 15 characters long and consists of the following three components: grid zone designation, 100,000-meter square identifier, and easting/northing.

Parameters

mgrsCoordinate
A System.String representing the coordinate notation to be converted.
spatialReference
A SpatialReference representing the geographic or projected coordinate system of the returned MapPoint.
conversionMode
A MgrsConversionMode value determining the spheroid used in the conversion and the zone in which the 180 longitude falls.

Return Value

A MapPoint representing the location defined by the coordinates. Note that the location defined by an MGRS coordinate string is an area, not a specific point; however, the returned MapPoint represents the lower left corner of the area that the MGRS string represents.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.