Constructor SpatialReferenceBuilder
SpatialReferenceBuilder(int)
Initializes a new instance of the SpatialReferenceBuilder class based on the given horizontal coordinate system.
Declaration
public SpatialReferenceBuilder(int wkid)
Parameters
| Type | Name | Description |
|---|---|---|
| int | wkid | The well-known ID of the horizontal coordinate system. Must be a supported well-known ID. |
Remarks
This method creates a spatial reference builder based on the given horizontal coordinate system WKID, and will have not have a vertical coordinate system associated with it. It will have default precision values (Resolution, Tolerance, VerticalResolution, and VerticalTolerance).
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The provided WKID is not a supported well-known ID. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.8 |
| .NET | 200.8 - 300.0 |
| .NET Windows | 200.8 - 300.0 |
| .NET Android | 200.8 - 300.0 |
| .NET iOS | 200.8 - 300.0 |
| .NET Framework | 200.8 |
| UWP | 200.8 |
SpatialReferenceBuilder(SpatialReference)
Initializes a new instance of the SpatialReferenceBuilder class with the specified spatial reference (including any customizations) as the starting point for further modifications.
Declaration
public SpatialReferenceBuilder(SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| SpatialReference | spatialReference | The spatial reference to use as a starting point for further modifications |
Remarks
This method creates a spatial reference builder with property values that match the given SpatialReference, including any custom precision values (Resolution, Tolerance, VerticalResolution, and VerticalTolerance).
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.8 |
| .NET | 200.8 - 300.0 |
| .NET Windows | 200.8 - 300.0 |
| .NET Android | 200.8 - 300.0 |
| .NET iOS | 200.8 - 300.0 |
| .NET Framework | 200.8 |
| UWP | 200.8 |
SpatialReferenceBuilder(string)
Initializes a new instance of the SpatialReferenceBuilder class based on well-known text.
Declaration
public SpatialReferenceBuilder(string wkText)
Parameters
| Type | Name | Description |
|---|---|---|
| string | wkText | A supported well-known text definition of a coordinate system. |
Remarks
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. Both WKT and WKT2 formats are supported as input. The builder will have default precision values (Resolution, Tolerance, VerticalResolution, and VerticalTolerance).
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The provided |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.8 |
| .NET | 200.8 - 300.0 |
| .NET Windows | 200.8 - 300.0 |
| .NET Android | 200.8 - 300.0 |
| .NET iOS | 200.8 - 300.0 |
| .NET Framework | 200.8 |
| UWP | 200.8 |
SpatialReferenceBuilder(int, int)
Initializes a new instance of the SpatialReferenceBuilder class based on the given horizontal and vertical coordinate systems.
Declaration
public SpatialReferenceBuilder(int wkid, int verticalWkid)
Parameters
| Type | Name | Description |
|---|---|---|
| int | wkid | The well-known ID of the horizontal coordinate system. Must be a supported well-known ID. |
| int | verticalWkid | The well-known ID of the vertical coordinate system. Must be a supported well-known ID. |
Remarks
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
(Resolution, Tolerance,
VerticalResolution, and VerticalTolerance). If
verticalWkid is less than or equal to 0, this is equivalent to calling SpatialReferenceBuilder(int),
and the builder 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.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The provided WKID or verticalWKID is not a supported well-known ID. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.8 |
| .NET | 200.8 - 300.0 |
| .NET Windows | 200.8 - 300.0 |
| .NET Android | 200.8 - 300.0 |
| .NET iOS | 200.8 - 300.0 |
| .NET Framework | 200.8 |
| UWP | 200.8 |