Constructor SpatialReference
SpatialReference(Int32)
Initializes a new instance of the Spatial
Declaration
public SpatialReference(int wkid)
Parameters
Type | Name | Description |
---|---|---|
System. |
wkid | The well-known ID that represents the Spatial Reference. |
Remarks
Each spatial reference can be represented by either a well-known ID (wkid), or a well-known text (wkt). Spatial References define the spatial properties of a geometry, for instance the coordinate system it uses. There are 2 broad classes of coordinate systems - Geographic & Projected. A Geographic Coordinate system uses a 3-dimensional spherical surface to define locations on the earth. A Projected Coordinate system on the other hand uses a flat, 2-dimensional surface. More information about spatial references and coordinate systems is available here.
It is very important to associate spatial data, such as geometry objects, with corresponding spatial references.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.13 |
.NET 6.0 | 100.13 |
.NET 6.0 Windows | 100.13 |
.NET Framework | 100.0 - 100.13 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.13 |
Xamarin.iOS | 100.0 - 100.13 |
UWP | 100.0 - 100.15 |
Relevant samples
SpatialReference(Int32, Int32)
Initializes a new instance of the Spatial
Declaration
public SpatialReference(int wkid, int verticalWkid)
Parameters
Type | Name | Description |
---|---|---|
System. |
wkid | The well-known ID that represents the Spatial Reference. |
System. |
verticalWkid | The Vertical Coordinate System well-known ID. |
Remarks
Each spatial reference can be represented by either a well-known ID (wkid), or a well-known text (wkt). Spatial References define the spatial properties of a geometry, for instance the coordinate system it uses. There are 2 broad classes of coordinate systems - Geographic & Projected. A Geographic Coordinate system uses a 3-dimensional spherical surface to define locations on the earth. A Projected Coordinate system on the other hand uses a flat, 2-dimensional surface. More information about spatial references and coordinate systems is available here.
It is very important to associate spatial data, such as geometry objects, with corresponding spatial references.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.13 |
.NET 6.0 | 100.13 |
.NET 6.0 Windows | 100.13 |
.NET Framework | 100.0 - 100.13 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.13 |
Xamarin.iOS | 100.0 - 100.13 |
UWP | 100.0 - 100.15 |
SpatialReference(String)
Initializes a new instance of the Spatial
Declaration
public SpatialReference(string wktext)
Parameters
Type | Name | Description |
---|---|---|
String | wktext | The well-known text that represents the Spatial Reference. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.13 |
.NET 6.0 | 100.13 |
.NET 6.0 Windows | 100.13 |
.NET Framework | 100.0 - 100.13 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.13 |
Xamarin.iOS | 100.0 - 100.13 |
UWP | 100.0 - 100.15 |