18 #ifndef QGSCOORDINATETRANSFORMCONTEXT_PRIVATE_H
19 #define QGSCOORDINATETRANSFORMCONTEXT_PRIVATE_H
43 class QgsCoordinateTransformContextPrivate :
public QSharedData
48 QgsCoordinateTransformContextPrivate() =
default;
50 QgsCoordinateTransformContextPrivate(
const QgsCoordinateTransformContextPrivate &other )
51 : QSharedData( other )
53 other.mLock.lockForRead();
54 mSourceDestDatumTransforms = other.mSourceDestDatumTransforms;
61 #if PROJ_VERSION_MAJOR>=6
62 class OperationDetails
66 bool allowFallback =
true;
68 bool operator==(
const OperationDetails &other )
const
70 return operation == other.operation && allowFallback == other.allowFallback;
73 QMap< QPair< QgsCoordinateReferenceSystem, QgsCoordinateReferenceSystem >, OperationDetails > mSourceDestDatumTransforms;
79 mutable QReadWriteLock mLock{};
82 QgsCoordinateTransformContextPrivate &operator= (
const QgsCoordinateTransformContextPrivate & ) =
delete;
89 #endif // QGSCOORDINATETRANSFORMCONTEXT_PRIVATE_H