Class: QgsGeometryValidator¶
-
class
qgis.core.
QgsGeometryValidator
(geometry: QgsGeometry, errors: Iterable[QgsGeometry.Error] = [], method: QgsGeometry.ValidationMethod = QgsGeometry.ValidatorQgisInternal)¶ Bases:
PyQt5.QtCore.QThread
Constructor for QgsGeometryValidator.
- Parameters
geometry (QgsGeometry) –
errors (Iterable[QgsGeometry.Error] = []) –
method –
-
addError
(self, QgsGeometry.Error)¶
-
childEvent
(self, QChildEvent)¶
-
connectNotify
(self, QMetaMethod)¶
-
customEvent
(self, QEvent)¶
-
disconnectNotify
(self, QMetaMethod)¶
-
errorFound
¶ Sent when an error has been found during the validation process.
The
error
contains details about the error. [signal]- Parameters
error (QgsGeometry.Error) –
-
exec
(self) → int¶
-
exec_
(self) → int¶
-
isSignalConnected
(self, QMetaMethod) → bool¶
-
receivers
(self, PYQT_SIGNAL) → int¶
-
run
(self)¶
-
sender
(self) → QObject¶
-
senderSignalIndex
(self) → int¶
-
setTerminationEnabled
(enabled: bool = True)¶
-
stop
(self)¶
-
timerEvent
(self, QTimerEvent)¶
-
validateGeometry
(geometry: QgsGeometry, method: QgsGeometry.ValidationMethod = QgsGeometry.ValidatorQgisInternal) → List[QgsGeometry.Error]¶ Validate geometry and produce a list of geometry errors. This method blocks the thread until the validation is finished.
- Parameters
geometry (QgsGeometry) –
method (QgsGeometry.ValidationMethod = QgsGeometry.ValidatorQgisInternal) –
- Return type
List[QgsGeometry.Error]
-
validationFinished
¶ 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.New in version 3.6: [signal]
- Parameters
summary (str) –