Visual Basic (Declaration) | |
---|---|
Public Shared Function MgrsToMapPoints( _ ByVal mgrsCoordinates As IEnumerable(Of String), _ ByVal spatialReference As SpatialReference, _ ByVal conversionMode As MgrsConversionMode _ ) As IList(Of MapPoint) |
C# | |
---|---|
public static IList<MapPoint> MgrsToMapPoints( IEnumerable<string> mgrsCoordinates, 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
- mgrsCoordinates
- A IEnumerable of System.String representing the coordinate notations to be converted.
- spatialReference
- A SpatialReference representing the geographic or projected coordinate system of each MapPoint in the returned collection.
- conversionMode
- A MgrsConversionMode value determining the spheroid used in the conversion and the zone in which the 180 longitude falls.
Return Value
A IList of MapPoint representing the locations defined by the input coordinate notations. 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