Class: QgsDatumTransform¶
- class qgis.core.QgsDatumTransform¶
Bases:
sip.wrapper
Contains methods and classes relating the datum transformations.
See also
See also
New in version 3.0:
Methods
Returns detailed information about the specified
datumTransformId
.Returns a proj string representing the specified
datumTransformId
datum transform ID.Returns a list of datum transformations which are available for the given
source
anddestination
CRS.Returns a list of coordinate operations available for transforming coordinates from the
source
todestination
CRS.Returns the datum transform ID corresponding to a specified proj
string
.- class GridDetails¶
- class GridDetails(QgsDatumTransform.GridDetails)
Bases:
sip.wrapper
- directDownload¶
- fullName¶
- isAvailable¶
- openLicense¶
- packageName¶
- shortName¶
- url¶
- class SingleOperationDetails¶
- class SingleOperationDetails(QgsDatumTransform.SingleOperationDetails)
Bases:
sip.wrapper
- areaOfUse¶
- authority¶
- code¶
- remarks¶
- scope¶
- class TransformDetails¶
- class TransformDetails(QgsDatumTransform.TransformDetails)
Bases:
sip.wrapper
- accuracy¶
- areaOfUse¶
- authority¶
- bounds¶
- code¶
- grids¶
- isAvailable¶
- name¶
- operationDetails¶
- proj¶
- remarks¶
- scope¶
- class TransformInfo¶
- class TransformInfo(QgsDatumTransform.TransformInfo)
Bases:
sip.wrapper
- datumTransformId¶
- deprecated¶
- destinationCrsAuthId¶
- destinationCrsDescription¶
- epsgCode¶
- preferred¶
- remarks¶
- scope¶
- sourceCrsAuthId¶
- sourceCrsDescription¶
- class TransformPair(sourceTransformId: int = -1, destinationTransformId: int = -1)¶
Bases:
sip.wrapper
Constructor for a TransformPair with the specified
sourceTransformId
anddestinationTransformId
transforms.QgsDatumTransform.TransformPair(QgsDatumTransform.TransformPair)
- destinationTransformId¶
- sourceTransformId¶
- datumTransformInfo(datumTransformId: int) QgsDatumTransform.TransformInfo ¶
Returns detailed information about the specified
datumTransformId
. IfdatumTransformId
was not a valid transform ID, a TransformInfo with TransformInfo.datumTransformId of -1 will be returned.See also
See also
Deprecated since version Not: used for builds based on Proj >= 6.0
- Parameters:
datumTransformId (int) –
- Return type:
- datumTransformToProj(datumTransformId: int) str ¶
Returns a proj string representing the specified
datumTransformId
datum transform ID.See also
See also
See also
Deprecated since version Not: used for builds based on Proj >= 6.0
- Parameters:
datumTransformId (int) –
- Return type:
str
- datumTransformations(source: QgsCoordinateReferenceSystem, destination: QgsCoordinateReferenceSystem) List[QgsDatumTransform.TransformPair] ¶
Returns a list of datum transformations which are available for the given
source
anddestination
CRS.See also
See also
Deprecated since version Not: used for builds based on Proj >= 6.0
- Parameters:
source (QgsCoordinateReferenceSystem) –
destination (QgsCoordinateReferenceSystem) –
- Return type:
- operations(source: QgsCoordinateReferenceSystem, destination: QgsCoordinateReferenceSystem, includeSuperseded: bool = False) List[QgsDatumTransform.TransformDetails] ¶
Returns a list of coordinate operations available for transforming coordinates from the
source
todestination
CRS.This list is sorted in order of preference, with the most preferable operation listed first.
Not all operations may be available for use. Check QgsDatumTransform.TransformDetails.isAvailable first. Operations may require grid shift files which are not available on the local install.
If
includeSuperseded
isTrue
, superseded (but not deprecated) transforms will be included in the results. This requires Proj >= 6.2.Note
Requires Proj 6.0 or later. Builds based on earlier Proj versions will always return an empty list, and the deprecated API from
QgsDatumTransform
must be used instead.New in version 3.8.
- Parameters:
source (QgsCoordinateReferenceSystem) –
destination (QgsCoordinateReferenceSystem) –
includeSuperseded (bool = False) –
- Return type:
- projStringToDatumTransformId(string: str) int ¶
Returns the datum transform ID corresponding to a specified proj
string
. Returns -1 if matching datum ID was not found.See also
Deprecated since version Not: used for builds based on Proj >= 6.0
- Parameters:
string (str) –
- Return type:
int