Show / Hide Table of Contents

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