Method Create
Create(Int32)
Returns an instance of the Spatial
Declaration
public static SpatialReference Create(int wkid)
Parameters
Type | Name | Description |
---|---|---|
System. |
wkid | The well-known ID of the horizontal coordinate system. Must be a positive value. |
Returns
Type | Description |
---|---|
Spatial |
A Spatial |
Remarks
The returned Spatial
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.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
Create(Int32, Int32)
Returns an instance of the Spatial
Declaration
public static SpatialReference Create(int wkid, int verticalWkid)
Parameters
Type | Name | Description |
---|---|---|
System. |
wkid | Well-known ID (WKID) of the horizontal coordinate system. Must be a positive value. |
System. |
verticalWkid | Well-known ID (WKID) of the vertical coordinate system. Must be a non negative value. |
Returns
Type | Description |
---|---|
Spatial |
A Spatial |
Remarks
The method returns a spatial reference that has both horizontal and vertical coordinate systems.
When verticalWkid
is 0, this method is equivalent to calling Create(Int32),
and does not define a vertical coordinate system part.
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.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Create(String)
Returns an instance of the Spatial
Declaration
public static SpatialReference Create(string wktext)
Parameters
Type | Name | Description |
---|---|---|
System. |
wktext | A well-known text (WKT) string that defines a horizontal and optionally vertical coordinate system. |
Returns
Type | Description |
---|---|
Spatial |
A Spatial |
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.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |