SpatialReference

constructor(wkid: Int)

Creates a spatial reference based on WKID. The method will create a spatial reference that has only horizontal coordinate system and does not have vertical coordinate system associated with it.

Since

200.1.0

Parameters

wkid

The well-known ID of the horizontal coordinate system. Must be a supported well-known ID.

Throws

The provided WKID is not a supported well-known ID.


constructor(wkid: Int, verticalWkid: Int)

Creates a spatial reference based on WKID for the horizontal coordinate system and vertical coordinate system. The method creates a spatial reference that has both horizontal and vertical coordinate systems. When the vertical WKID is less than or equal to 0, this is equivalent to calling SpatialReference.SpatialReference, and the spatial reference will not have a vertical coordinate system associated with it. If verticalWKID is greater than zero but is not a supported well-known ID, an exception will be thrown.

Since

200.1.0

Parameters

wkid

The well-known ID of the horizontal coordinate system. Must be a supported well-known ID.

verticalWkid

The well-known ID of the vertical coordinate system. Must be a supported well-known ID.

Throws

The provided WKID or verticalWKID is not a supported well-known ID.


constructor(wkText: String)

Creates a spatial reference based on well-known text.

Since

200.1.0

Parameters

wkText

The well-known text of the spatial reference to create.

Throws

The provided wkText does not contain a supported coordinate system well-known text string.