18 #ifndef QGSCOORDINATEREFERENCESYSTEM_PRIVATE_H 19 #define QGSCOORDINATEREFERENCESYSTEM_PRIVATE_H 33 #include <ogr_srs_api.h> 41 class QgsCoordinateReferenceSystemPrivate :
public QSharedData
45 explicit QgsCoordinateReferenceSystemPrivate()
46 : mCRS( OSRNewSpatialReference( nullptr ) )
50 QgsCoordinateReferenceSystemPrivate(
const QgsCoordinateReferenceSystemPrivate &other )
51 : QSharedData( other )
52 , mSrsId( other.mSrsId )
53 , mDescription( other.mDescription )
54 , mProjectionAcronym( other.mProjectionAcronym )
55 , mEllipsoidAcronym( other.mEllipsoidAcronym )
56 , mIsGeographic( other.mIsGeographic )
57 , mMapUnits( other.mMapUnits )
58 , mSRID( other.mSRID )
59 , mAuthId( other.mAuthId )
60 , mIsValid( other.mIsValid )
62 , mValidationHint( other.mValidationHint )
64 , mProj4( other.mProj4 )
65 , mAxisInvertedDirty( other.mAxisInvertedDirty )
66 , mAxisInverted( other.mAxisInverted )
70 mCRS = OSRClone( other.mCRS );
74 mCRS = OSRNewSpatialReference(
nullptr );
78 ~QgsCoordinateReferenceSystemPrivate()
80 OSRDestroySpatialReference( mCRS );
90 QString mProjectionAcronym;
93 QString mEllipsoidAcronym;
96 bool mIsGeographic =
false;
112 QString mValidationHint;
113 mutable QString mWkt;
114 mutable QString mProj4;
117 mutable bool mAxisInvertedDirty =
false;
120 mutable bool mAxisInverted =
false;
126 #endif //QGSCOORDINATEREFERENCESYSTEM_PRIVATE_H DistanceUnit
Units of distance.
void * OGRSpatialReferenceH