Function used to transform coordinates between spatial references that have different datums. More...
|GeographicTransformation(const GeographicTransformationStep &step, QObject *parent = nullptr)|
|GeographicTransformation(const QList<GeographicTransformationStep> &steps, QObject *parent = nullptr)|
- 8 public functions inherited from Esri::ArcGISRuntime::DatumTransformation
- 31 public functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from Esri::ArcGISRuntime::Object
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
Function used to transform coordinates between spatial references that have different datums.
Each GeographicTransformation has an input and an output spatial reference. The transformation operates on the datums in each spatial reference.
A GeographicTransformation can be constructed from a single GeographicTransformationStep, or from a list of GeographicTransformationSteps that are chained together. Most transformations between spatial references that do not share the WGS 1984 datum use WGS 1984 as an intermediate datum. Thus, it is common to create a GeographicTransformation with two GeographicTransformationSteps: first to transform from the datum in the input spatial reference to WGS 1984, and then from WGS 1984 to the output spatial reference's datum. There are a limited number of transformations directly between two non-WGS84 datums, such as WKID 4461, which is
NAD_1983_HARN_To_NAD_1983_NSRS2007_1. These do not need WGS 1984 as an intermediate datum.
In most cases, you do not need to construct your own GeographicTransformation. You can get a list of suitable transformations for a given input and output spatial reference using one of the TransformationCatalog::transformationsBySuitability functions.
A GeographicTransformation object is immutable.
Member Function Documentation
GeographicTransformation::GeographicTransformation(const GeographicTransformationStep &step, QObject *parent = nullptr)
Constructor for a single-step GeographicTransformation.
This constructor accepts a single GeographicTransformationStep (step) and an optional parent object.
GeographicTransformation::GeographicTransformation(const QList<GeographicTransformationStep> &steps, QObject *parent = nullptr)
Constructor for a multi-step GeographicTransformation.
This constructor accepts a list of GeographicTransformationStep objects (steps) and an optional parent object. Use this constructor when the multi-step transformation is known in advance. The output of each step should match the input of the following step. Then, you can use the new multi-step transformation where you would use a single-step transformation.