Method FromMgrs
FromMgrs(String, SpatialReference, MgrsConversionMode)
Parses a coordinate string in the Military Grid Reference System (MGRS) notation,
and returns a Map
Declaration
public static MapPoint FromMgrs(string coordinates, SpatialReference spatialReference, MgrsConversionMode mgrsConversionMode)
Parameters
Type | Name | Description |
---|---|---|
System. |
coordinates | The MGRS notation string for the coordinate. |
Spatial |
spatialReference | An optional Spatial |
Mgrs |
mgrsConversionMode | The Mgrs |
Returns
Type | Description |
---|---|
Map |
A Map |
Remarks
The provided spatialReference
parameter must have an ellipsoid and datum matching those used
by the source of the MGRS string. If no Spatial
For an explanation of the different modes for interpreting an MGRS notation string,
please see Mgrs
MGRS notation examples |
---|
30UVG898998 |
30UVG 89885 99877 |
Exceptions
Type | Condition |
---|---|
Argument |
|
Arc |
Given coordinates could not be parsed or converted. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.15 |