SpatialReferenceBuilder

constructor(spatialReference: SpatialReference)

Creates a spatial reference builder with the specified spatial reference (including any customizations) as the starting point for further modifications. This method creates a spatial reference builder with property values that match the given SpatialReference, including any custom precision values (SpatialReferenceBuilder.resolution, SpatialReferenceBuilder.tolerance, SpatialReferenceBuilder.verticalResolution, and SpatialReferenceBuilder.verticalTolerance).

Since

200.8.0

Parameters

spatialReference

The spatial reference to use as a starting point for further modifications


constructor(wkText: String)

Creates a spatial reference builder based on well-known text. This method creates a spatial reference build based on the given well-known text definition of a coordinate system, and so can be used to define a builder with a customized coordinate system. The builder will have default precision values (SpatialReferenceBuilder.resolution, SpatialReferenceBuilder.tolerance, SpatialReferenceBuilder.verticalResolution, and SpatialReferenceBuilder.verticalTolerance).

Since

200.8.0

Parameters

wkText

A supported well-known text definition of a coordinate system.

Throws

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


constructor(wkid: Int, verticalWkid: Int? = null)

Creates a spatial reference builder based on the given horizontal and vertical coordinate systems. This method creates a spatial reference builder based on the given horizontal coordinate system WKID and vertical coordinate system verticalWKID. It will have default precision values (SpatialReferenceBuilder.resolution, SpatialReferenceBuilder.tolerance, SpatialReferenceBuilder.verticalResolution, and SpatialReferenceBuilder.verticalTolerance). If verticalWKID is null, the builder will not have a vertical coordinate system associated with it.

Since

200.8.0

Parameters

wkid

The well-known ID of the horizontal coordinate system. Must be a positive value (greater than zero).

verticalWkid

The well-known ID of the vertical coordinate system. Must be a non negative value. Null indicates a spatial reference without a vertical WKID.

Throws

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