QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
qgsrenderchecker.h File Reference
#include <qgis.h>
#include <QDir>
#include <QString>
#include <QRegExp>
#include <QList>
#include <qgsmaprenderer.h>
#include <qgslogger.h>
Include dependency graph for qgsrenderchecker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  QgsRenderChecker
 This is a helper class for unit tests that need to write an image and compare it to an expected result or render time. More...


bool compareWkt (QString a, QString b, double tolerance=0.000001)
 Compare two WKT strings with some tolerance.

Function Documentation

bool compareWkt ( QString  a,
QString  b,
double  tolerance = 0.000001 

Compare two WKT strings with some tolerance.

afirst WKT string
bsecond WKT string
tolerancetolerance to use (optional, defaults to 0.000001)
bool indicating if the WKT are sufficiently equal

Definition at line 127 of file qgsrenderchecker.h.

References QgsDebugMsg, and qgsDoubleNear().