QGIS API Documentation
3.24.2-Tisler (13c1a02865)
|
#include <qgsgeometryvalidator.h>
Public Slots | |
void | addError (const QgsGeometry::Error &) |
Signals | |
void | errorFound (const QgsGeometry::Error &error) |
Sent when an error has been found during the validation process. More... | |
void | validationFinished (const QString &summary) |
Sent when the validation is finished. More... | |
Public Member Functions | |
QgsGeometryValidator (const QgsGeometry &geometry, QVector< QgsGeometry::Error > *errors=nullptr, Qgis::GeometryValidationEngine method=Qgis::GeometryValidationEngine::QgisInternal) | |
Constructor for QgsGeometryValidator. More... | |
~QgsGeometryValidator () override | |
void | run () override |
void | stop () |
Static Public Member Functions | |
static void | validateGeometry (const QgsGeometry &geometry, QVector< QgsGeometry::Error > &errors, Qgis::GeometryValidationEngine method=Qgis::GeometryValidationEngine::QgisInternal) |
Validate geometry and produce a list of geometry errors. More... | |
Definition at line 31 of file qgsgeometryvalidator.h.
QgsGeometryValidator::QgsGeometryValidator | ( | const QgsGeometry & | geometry, |
QVector< QgsGeometry::Error > * | errors = nullptr , |
||
Qgis::GeometryValidationEngine | method = Qgis::GeometryValidationEngine::QgisInternal |
||
) |
Constructor for QgsGeometryValidator.
Definition at line 27 of file qgsgeometryvalidator.cpp.
|
override |
Definition at line 36 of file qgsgeometryvalidator.cpp.
|
slot |
Definition at line 398 of file qgsgeometryvalidator.cpp.
|
signal |
Sent when an error has been found during the validation process.
The error contains details about the error.
|
override |
Definition at line 261 of file qgsgeometryvalidator.cpp.
void QgsGeometryValidator::stop | ( | ) |
Definition at line 42 of file qgsgeometryvalidator.cpp.
|
static |
Validate geometry and produce a list of geometry errors.
This method blocks the thread until the validation is finished.
Definition at line 404 of file qgsgeometryvalidator.cpp.
|
signal |
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.