17 #ifndef QGSCOORDINATETRANSFORM_H 18 #define QGSCOORDINATETRANSFORM_H 22 #include <QThreadStorage> 23 #include <QReadWriteLock> 163 void transformInPlace(
double& x,
double& y,
double &z,
TransformDirection direction = ForwardTransform )
const;
166 void transformInPlace(
float& x,
float& y,
double &z,
TransformDirection direction = ForwardTransform )
const;
168 void transformInPlace(
float& x,
float& y,
float& z,
TransformDirection direction = ForwardTransform )
const;
198 void transformCoords(
int numPoint,
double *x,
double *y,
double *z,
TransformDirection direction = ForwardTransform )
const;
220 void setDestCRSID(
long theCRSID );
226 static QString datumTransformString(
int datumTransform );
229 static bool datumTransformCrsInfo(
int datumTransform,
int& epsgNr,
QString& srcProjection,
QString& dstProjection,
QString &remarks,
QString &scope,
bool &preferred,
bool &deprecated );
255 void invalidTransformInput()
const;
268 bool mInitialisedFlag;
283 class QgsProjContextStore
287 QgsProjContextStore();
288 ~QgsProjContextStore();
290 projCtx get() {
return context; }
301 int mSourceDatumTransform;
302 int mDestinationDatumTransform;
313 void addNullGridShifts(
QString& srcProjString,
QString& destProjString );
322 QString mySummary(
"\n%%%%%%%%%%%%%%%%%%%%%%%%\nCoordinate Transform def begins:" );
323 mySummary +=
"\n\tInitialised? : ";
339 mySummary +=
"\n\tShort Circuit? : ";
349 mySummary +=
"\n\tSource Spatial Ref Sys : ";
356 mySummary +=
"Undefined";
359 mySummary +=
"\n\tDest Spatial Ref Sys : ";
366 mySummary +=
"Undefined";
370 mySummary += (
"\nCoordinate Transform def ends \n%%%%%%%%%%%%%%%%%%%%%%%%\n" );
375 #endif // QGSCOORDINATETRANSFORM_H A rectangle specified with double values.
A class to represent a point.
QByteArray toLocal8Bit() const
Class for storing a coordinate reference system (CRS)