2017-05-14 09:48:41 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsgeometryvalidator.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsGeometryValidator : QThread
|
|
|
|
{
|
2017-05-14 09:48:41 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-05-14 09:48:41 +02:00
|
|
|
#include "qgsgeometryvalidator.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-06-07 07:42:08 +10:00
|
|
|
|
2018-03-12 12:17:55 +10:00
|
|
|
QgsGeometryValidator( const QgsGeometry &geometry, QVector<QgsGeometry::Error> *errors = 0, QgsGeometry::ValidationMethod method = QgsGeometry::ValidatorQgisInternal );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsGeometryValidator.
|
2017-05-14 09:48:41 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
~QgsGeometryValidator();
|
|
|
|
|
2017-05-14 09:48:41 +02:00
|
|
|
virtual void run();
|
|
|
|
|
2017-06-08 07:28:36 +02:00
|
|
|
void stop();
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-11-14 16:07:39 +10:00
|
|
|
static void validateGeometry( const QgsGeometry &geometry, QVector<QgsGeometry::Error> &errors /Out/, QgsGeometry::ValidationMethod method = QgsGeometry::ValidatorQgisInternal );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
2019-02-20 18:03:43 +01:00
|
|
|
Validate geometry and produce a list of geometry errors.
|
|
|
|
This method blocks the thread until the validation is finished.
|
2017-05-14 09:48:41 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
signals:
|
2019-02-20 18:03:43 +01:00
|
|
|
|
|
|
|
void errorFound( const QgsGeometry::Error &error );
|
|
|
|
%Docstring
|
|
|
|
Sent when an error has been found during the validation process.
|
|
|
|
|
|
|
|
The ``error`` contains details about the error.
|
|
|
|
%End
|
|
|
|
|
|
|
|
void validationFinished( const QString &summary );
|
|
|
|
%Docstring
|
|
|
|
Sent when the validation is finished.
|
|
|
|
|
|
|
|
The result is in a human readable ``summary``, mentioning
|
|
|
|
if the validation has been aborted, successfully been validated
|
|
|
|
or how many errors have been found.
|
|
|
|
|
|
|
|
.. versionadded:: 3.6
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
public slots:
|
2017-05-14 09:48:41 +02:00
|
|
|
void addError( const QgsGeometry::Error & );
|
|
|
|
|
2017-06-07 07:42:08 +10:00
|
|
|
};
|
2017-05-14 09:48:41 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsgeometryvalidator.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|