Show / Hide Table of Contents

Constructor SpatialReference

SpatialReference(Int32)

Initializes a new instance of the SpatialReference class.

Declaration
public SpatialReference(int wkid)
Parameters
Type Name Description
System.Int32 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
TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET 6.0100.13
.NET 6.0 Windows100.13
.NET Framework100.0 - 100.13
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.13
Xamarin.iOS100.0 - 100.13
UWP100.0 - 100.15
Relevant samples
Buffer list: Generate multiple individual buffers or a single unioned buffer around multiple points.

SpatialReference(Int32, Int32)

Initializes a new instance of the SpatialReference class.

Declaration
public SpatialReference(int wkid, int verticalWkid)
Parameters
Type Name Description
System.Int32 wkid

The well-known ID that represents the Spatial Reference.

System.Int32 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
TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET 6.0100.13
.NET 6.0 Windows100.13
.NET Framework100.0 - 100.13
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.13
Xamarin.iOS100.0 - 100.13
UWP100.0 - 100.15

SpatialReference(String)

Initializes a new instance of the SpatialReference class.

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
TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET 6.0100.13
.NET 6.0 Windows100.13
.NET Framework100.0 - 100.13
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.13
Xamarin.iOS100.0 - 100.13
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.