Method Create
Create(Int32)
Returns an instance of the SpatialReference class based on the given well-known ID.
Declaration
public static SpatialReference Create(int wkid)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | wkid | The well-known ID of the horizontal coordinate system. Must be a positive value. |
Returns
Type | Description |
---|---|
SpatialReference | A SpatialReference object. |
Remarks
The returned SpatialReference has only horizontal coordinate system and does not have vertical coordinate system associated with it.
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 SpatialReference class based on well-known IDs for the horizontal and vertical coordinate systems.
Declaration
public static SpatialReference Create(int wkid, int verticalWkid)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | wkid | Well-known ID (WKID) of the horizontal coordinate system. Must be a positive value. |
System.Int32 | verticalWkid | Well-known ID (WKID) of the vertical coordinate system. Must be a non negative value. |
Returns
Type | Description |
---|---|
SpatialReference | A SpatialReference object. |
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 SpatialReference class based on well-known text (WKT).
Declaration
public static SpatialReference Create(string wktext)
Parameters
Type | Name | Description |
---|---|---|
System.String | wktext | A well-known text (WKT) string that defines a horizontal and optionally vertical coordinate system. |
Returns
Type | Description |
---|---|
SpatialReference | A SpatialReference object. |
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 |