Method Create
Create(Int32)
Returns an instance of the SpatialReference class.
Declaration
public static SpatialReference Create(int wkid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | wkid | The well-known ID that represents the Spatial Reference. |
Returns
Type | Description |
---|---|
SpatialReference | A SpatialReference object. |
Remarks
This method is more efficient than a constructor and can reuse instances.
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.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Densify and generalize: A multipart geometry can be densified by adding interpolated points at regular intervals. Generalizing multipart geometry simplifies it while preserving its general shape. Densifying a multipart geometry adds more vertices at regular intervals.
Identify layers: Identify features in all layers in a map. MapView supports identifying features across multiple layers. Because some layer types have sublayers, the sample recursively counts results for sublayers within each layer.
Create(Int32, Int32)
Initializes a new instance of the SpatialReference class.
Declaration
public static SpatialReference Create(int wkid, int verticalWkid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | wkid | The well-known ID that represents the Spatial Reference. |
Int32 | verticalWkid | The Vertical Coordinate System well-known ID. |
Returns
Type | Description |
---|---|
SpatialReference | A SpatialReference object. |
Remarks
This method is more efficient than a constructor and can reuse instances.
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.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Create(String)
Initializes a new instance of the SpatialReference class.
Declaration
public static SpatialReference Create(string wktext)
Parameters
Type | Name | Description |
---|---|---|
System.String | wktext | The Well known text that represents the Spatial Reference. |
Returns
Type | Description |
---|---|
SpatialReference | A SpatialReference object. |
Remarks
This method is more efficient than a constructor and can reuse instances.
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.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |