Class: QgsDatumTransform

class qgis.core.QgsDatumTransform

Bases: sip.wrapper

Contains methods and classes relating the datum transformations.

New in version 3.0: Enums

Methods

datumTransformInfo Returns detailed information about the specified datumTransformId.
datumTransformToProj Returns a proj string representing the specified datumTransformId datum transform ID.
datumTransformations Returns a list of datum transformations which are available for the given source and destination CRS.
projStringToDatumTransformId Returns the datum transform ID corresponding to a specified proj string.

Signals

Attributes

class TransformInfo

Bases: sip.wrapper

QgsDatumTransform.TransformInfo(QgsDatumTransform.TransformInfo)

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 and destinationTransformId transforms.

QgsDatumTransform.TransformPair(QgsDatumTransform.TransformPair)

destinationTransformId
sourceTransformId
datumTransformInfo(datumTransformId: int) → QgsDatumTransform.TransformInfo

Returns detailed information about the specified datumTransformId. If datumTransformId was not a valid transform ID, a TransformInfo with TransformInfo.datumTransformId of -1 will be returned.

datumTransformToProj(datumTransformId: int) → str

Returns a proj string representing the specified datumTransformId datum transform ID.

datumTransformations(source: QgsCoordinateReferenceSystem, destination: QgsCoordinateReferenceSystem) → object

Returns a list of datum transformations which are available for the given source and destination CRS.

projStringToDatumTransformId(string: str) → int

Returns the datum transform ID corresponding to a specified proj string. Returns -1 if matching datum ID was not found.