Subgroup: Geometry

Class: QgsGeometryCheckError

class qgis.analysis.QgsGeometryCheckError

Bases: sip.wrapper

This represents an error reported by a geometry check.

Note

This class is a technology preview and unstable API.

New in version 3.4: Methods

affectedAreaBBox
check
closeMatch Check if this error is almost equal to other.
description
featureId
geometry
isEqual Check if this error is equal to other.
layerId
location
resolutionMessage
setFixFailed
setFixed
setObsolete
status
update Update this error with the information from other.
value
valueType
vidx

Signals

Attributes

StatusFixFailed
StatusFixed
StatusObsolete
StatusPending
ValueArea
ValueLength
ValueOther
class Status

Bases: int

StatusFixFailed = 1
StatusFixed = 2
StatusObsolete = 3
StatusPending = 0
ValueArea = 1
ValueLength = 0
ValueOther = 2
class ValueType

Bases: int

affectedAreaBBox(self) → QgsRectangle
check(self) → QgsGeometryCheck
closeMatch(self, QgsGeometryCheckError) → bool

Check if this error is almost equal to other. If this returns true, it can be used to update existing errors after re-checking.

description(self) → str
featureId(self) → int
geometry(self) → QgsGeometry
isEqual(self, other: QgsGeometryCheckError) → bool

Check if this error is equal to other. Is reimplemented by subclasses with additional information, comparison of base information is done in parent class.

layerId(self) → str
location(self) → QgsPointXY
resolutionMessage(self) → str
setFixFailed(self, reason: str)
setFixed(self, method: int)
setObsolete(self)
status(self) → QgsGeometryCheckError.Status
update(self, other: QgsGeometryCheckError)

Update this error with the information from other. Will be used to update existing errors whenever they are re-checked.

value(self) → Any
valueType(self) → QgsGeometryCheckError.ValueType
vidx(self) → QgsVertexId