Method GetTransformation
GetTransformation(SpatialReference, SpatialReference)
Gets the best usable (default) transformation to transform between the input and output spatial references, without taking into account an area of interest.
Declaration
public static DatumTransformation GetTransformation(SpatialReference inputSpatialReference, SpatialReference outputSpatialReference)
Parameters
Type | Name | Description |
---|---|---|
Spatial |
inputSpatialReference | The Spatial |
Spatial |
outputSpatialReference | The Spatial |
Returns
Type | Description |
---|---|
Datum |
A Datum
Prior to version 100.9, this method returned a Geographic
From version 100.9 onwards, if both |
Remarks
The default transformation is the one that is used when calling
Project(Geometry, Spatial
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.2.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 100.15 |
GetTransformation(SpatialReference, SpatialReference, Envelope)
Gets the best usable transformation to transform between the input and output spatial references and takes into account the area of interest, if specified.
Declaration
public static DatumTransformation GetTransformation(SpatialReference inputSpatialReference, SpatialReference outputSpatialReference, Envelope areaOfInterest)
Parameters
Type | Name | Description |
---|---|---|
Spatial |
inputSpatialReference | The Spatial |
Spatial |
outputSpatialReference | The Spatial |
Envelope | areaOfInterest | The bounding box of coordinates to be transformed, or |
Returns
Type | Description |
---|---|
Datum |
A Datum
Prior to version 100.9, this method returned a Geographic
From version 100.9 onwards, if both |
Remarks
If areaOfInterest
is null
or Is
Otherwise, if areaOfInterest
does not intersect the area of use of
inputSpatialReference
, this method returns null
.
If the SpatialareaOfInterest
differs from
inputSpatialReference
, then areaOfInterest
is
reprojected to inputSpatialReference
.
A geographic area containing coordinates to be transformed, expressed as an Envelope.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.2.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 100.15 |
GetTransformation(SpatialReference, SpatialReference, Envelope, Boolean)
Returns the best usable transformation used to transform between the input and output spatial references, taking into account the area of interest, if specified. Optionally disregards any vertical transformations.
Declaration
public static DatumTransformation GetTransformation(SpatialReference inputSpatialReference, SpatialReference outputSpatialReference, Envelope areaOfInterest, bool ignoreVertical)
Parameters
Type | Name | Description |
---|---|---|
Spatial |
inputSpatialReference | The spatial reference to use as the input. |
Spatial |
outputSpatialReference | The spatial reference to use as the output. |
Envelope | areaOfInterest | The bounding box of coordinates to be transformed, or |
Boolean | ignoreVertical |
|
Returns
Type | Description |
---|---|
Datum |
A Datum |
Remarks
Use this method to determine whether or not any vertical coordinate systems set on the
spatial reference parameters should be accounted for in the returned transformation. This
method can be used to replicate the former (prior to version 100.9.0) behavior of the
GetignoreVertical
= false
is equivalent to
calling GetignoreVertical
true
is equivalent to
calling Get
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.10 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.10 - 100.12 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 100.15 |