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 ) |
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.Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8