17 #ifndef QGSCOORDINATETRANSFORM_H
18 #define QGSCOORDINATETRANSFORM_H
129 QgsPoint transform(
const QgsPoint p, TransformDirection direction = ForwardTransform )
const;
139 QgsPoint transform(
const double x,
const double y, TransformDirection direction = ForwardTransform )
const;
151 QgsRectangle transformBoundingBox(
const QgsRectangle theRect, TransformDirection direction = ForwardTransform )
const;
156 void transformInPlace(
double& x,
double& y,
double &z, TransformDirection direction = ForwardTransform )
const;
159 void transformInPlace( QVector<double>& x, QVector<double>& y, QVector<double>& z,
160 TransformDirection direction = ForwardTransform )
const;
162 void transformPolygon( QPolygonF& poly, TransformDirection direction = ForwardTransform )
const;
165 void transformInPlace(
float& x,
float& y,
float& z, TransformDirection direction = ForwardTransform )
const;
167 void transformInPlace( QVector<float>& x, QVector<float>& y, QVector<float>& z,
168 TransformDirection direction = ForwardTransform )
const;
190 void transformCoords(
const int &numPoint,
double *x,
double *y,
double *z, TransformDirection direction = ForwardTransform )
const;
212 void setDestCRSID(
long theCRSID );
222 bool readXML( QDomNode & theNode );
229 bool writeXML( QDomNode & theNode, QDomDocument & theDoc );
233 void invalidTransformInput()
const;
277 QString mySummary(
"\n%%%%%%%%%%%%%%%%%%%%%%%%\nCoordinate Transform def begins:" );
278 mySummary +=
"\n\tInitialised? : ";
294 mySummary +=
"\n\tShort Circuit? : " ;
304 mySummary +=
"\n\tSource Spatial Ref Sys : ";
311 mySummary +=
"Undefined" ;
314 mySummary +=
"\n\tDest Spatial Ref Sys : " ;
321 mySummary +=
"Undefined" ;
325 mySummary += (
"\nCoordinate Transform def ends \n%%%%%%%%%%%%%%%%%%%%%%%%\n" );
326 return os << mySummary.toLocal8Bit().data() << std::endl;
330 #endif // QGSCOORDINATETRANSFORM_H