Class: QgsGeometryCheckFactory

A factory for geometry checks.

Note

This class is a technology preview and unstable API.

Added in version 3.4.

Methods

checkType

The type of this check.

createGeometryCheck

Creates a new geometry check with context and configuration.

description

A human readable description for this check.

flags

Flags for this check.

id

The unique id for this geometry check.

isCompatible

Checks if this check should be made available for layer.

class qgis.analysis.QgsGeometryCheckFactory[source]

Bases: object

checkType(self) QgsGeometryCheck.CheckType[source]

The type of this check.

Return type:

QgsGeometryCheck.CheckType

createGeometryCheck(self, context: QgsGeometryCheckContext | None, configuration: Dict[str, Any]) QgsGeometryCheck | None[source]

Creates a new geometry check with context and configuration.

Parameters:
Return type:

Optional[QgsGeometryCheck]

description(self) str[source]

A human readable description for this check.

Return type:

str

flags(self) QgsGeometryCheck.Flags[source]

Flags for this check.

Return type:

QgsGeometryCheck.Flags

id(self) str[source]

The unique id for this geometry check.

Return type:

str

isCompatible(self, layer: QgsVectorLayer | None) bool[source]

Checks if this check should be made available for layer.

Parameters:

layer (Optional[QgsVectorLayer])

Return type:

bool