135 int sourceDatumTransformId,
164 bool isValid()
const;
321 void transformInPlace( QVector<float> &x, QVector<float> &y, QVector<float> &z,
337 void transformInPlace( QVector<double> &x, QVector<double> &y, QVector<double> &z,
375 bool isShortCircuited()
const;
383 bool hasVerticalComponent()
const;
401 QString coordinateOperation()
const;
431 void setCoordinateOperation(
const QString &operation )
const;
447 void setAllowFallbackTransforms(
bool allowed );
460 bool allowFallbackTransforms()
const;
493 void setBallparkTransformsAreAppropriate(
bool appropriate );
509 void disableFallbackOperationHandler(
bool disabled );
519 bool fallbackOperationOccurred()
const;
534 Q_DECL_DEPRECATED
int sourceDatumTransformId()
const SIP_DEPRECATED;
549 Q_DECL_DEPRECATED
void setSourceDatumTransformId(
int datumId )
SIP_DEPRECATED;
564 Q_DECL_DEPRECATED
int destinationDatumTransformId()
const SIP_DEPRECATED;
579 Q_DECL_DEPRECATED
void setDestinationDatumTransformId(
int datumId )
SIP_DEPRECATED;
592 static void invalidateCache(
bool disableCache =
false );
601 static void invalidateCache(
bool disableCache
SIP_PYARGREMOVE =
false );
613 double scaleFactor(
const QgsRectangle &referenceExtent )
const;
616 SIP_PYOBJECT __repr__();
618 QString str = QStringLiteral(
"<QgsCoordinateTransform: %1 to %2>" ).arg( sipCpp->sourceCrs().isValid() ? sipCpp->sourceCrs().authid() : QStringLiteral(
"NULL" ),
619 sipCpp->destinationCrs().isValid() ? sipCpp->destinationCrs().authid() : QStringLiteral(
"NULL" ) );
620 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
677 const QString &error )> &handler );
704 const QString &desiredOperation )> &handler );
723 static void removeFromCacheObjectsBelongingToCurrentThread(
void *pj_context );
726 mutable QExplicitlySharedDataPointer<QgsCoordinateTransformPrivate> d;
732 bool mHasContext =
false;
735 mutable QString mLastError;
736 bool mIgnoreImpossible =
false;
737 bool mBallparkTransformsAreAppropriate =
false;
738 bool mDisableFallbackHandler =
false;
739 mutable bool mFallbackOperationOccurred =
false;
743 const QString &coordinateOperationProj,
bool allowFallback );
748 static QReadWriteLock sCacheLock;
758 static bool sDisableCache;
763 const QString &desiredOperation )> sFallbackOperationOccurredHandler;
765 friend class TestQgsCoordinateTransform;
Used to create and store a proj context object, correctly freeing the context upon destruction.