Class: QgsSingleGeometryCheckError¶
An error from a QgsSingleGeometryCheck.
Note
This class is a technology preview and unstable API.
Added in version 3.4.
Methods
The check that created this error. |
|
A human readable description of this error. |
|
The exact location of the error. |
|
Check if this error is equal to other. |
|
Update this error with the information from other. |
|
The vertex id of the error. |
- class qgis.analysis.QgsSingleGeometryCheckError[source]¶
Bases:
object- __init__(check: QgsSingleGeometryCheck | None, geometry: QgsGeometry, errorLocation: QgsGeometry, vertexId: QgsVertexId = QgsVertexId())
Creates a new single geometry check error.
- Parameters:
check (Optional[QgsSingleGeometryCheck])
geometry (QgsGeometry)
errorLocation (QgsGeometry)
vertexId (
QgsVertexId= QgsVertexId())
- __init__(a0: QgsSingleGeometryCheckError)
- Parameters:
- check(self) QgsSingleGeometryCheck | None[source]¶
The check that created this error.
Added in version 3.4.
- Return type:
Optional[QgsSingleGeometryCheck]
- errorLocation(self) QgsGeometry[source]¶
The exact location of the error.
Added in version 3.4.
- Return type:
- isEqual(self, other: QgsSingleGeometryCheckError | None) bool[source]¶
Check if this error is equal to
other. Is reimplemented by subclasses with additional information, comparison of base information is done in parent class.- Parameters:
other (Optional[QgsSingleGeometryCheckError])
- Return type:
bool
- update(self, other: QgsSingleGeometryCheckError | None)[source]¶
Update this error with the information from
other. Will be used to update existing errors whenever they are re-checked.- Parameters:
other (Optional[QgsSingleGeometryCheckError])
- vertexId(self) QgsVertexId[source]¶
The vertex id of the error. May be invalid depending on the check.
Added in version 3.4.
- Return type: