Method FromUsng
FromUsng(String, SpatialReference)
Parses a coordinate in United States National Grid (USNG) notation and returns a Map
Declaration
public static MapPoint FromUsng(string coordinates, SpatialReference spatialReference)
Parameters
Type | Name | Description |
---|---|---|
System. |
coordinates | The USNG notation string for the coordinate. |
Spatial |
spatialReference | An optional Spatial |
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 USNG string. If no Spatial
USNG notation examples |
---|
13TFJ 23 59 |
13TFJ2374159574 |
Exceptions
Type | Condition |
---|---|
System. |
|
Arc |
Given coordinates could not be parsed or converted. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |