2012-09-24 02:28:15 +02:00
|
|
|
class QgsGeometryValidator : QThread
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsgeometryvalidator.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
//! Constructor
|
2015-05-04 21:00:08 +10:00
|
|
|
QgsGeometryValidator( const QgsGeometry *g, QList<QgsGeometry::Error> *errors = 0 );
|
2012-09-24 02:28:15 +02:00
|
|
|
~QgsGeometryValidator();
|
|
|
|
|
|
|
|
void run();
|
|
|
|
void stop();
|
|
|
|
|
2014-11-21 01:17:21 +01:00
|
|
|
/** Validate geometry and produce a list of geometry errors */
|
2016-10-05 13:16:14 +10:00
|
|
|
static void validateGeometry( const QgsGeometry *g, QList<QgsGeometry::Error> &errors /Out/ );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
signals:
|
2015-10-26 22:46:25 +11:00
|
|
|
void errorFound( const QgsGeometry::Error& );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
public slots:
|
2015-10-07 11:55:34 +11:00
|
|
|
void addError( const QgsGeometry::Error& );
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|