Class: QgsGeometryCheckRegistry

class qgis.analysis.QgsGeometryCheckRegistry

Bases: sip.wrapper

Constructor for QgsGeometryCheckRegistry. QgsGeometryCheckRegistry is not usually directly created, but rather accessed through QgsAnalysis.geometryCheckRegistry()

QgsGeometryCheckRegistry(QgsGeometryCheckRegistry)

This class manages all known geometry check factories.

QgsGeometryCheckRegistry is not usually directly created, but rather accessed through QgsAnalysis.geometryCheckRegistry()

Note

This class is a technology preview and unstable API.

Methods

geometryCheck

Create a new geometryCheck of type checkId Pass the context and geometryCheckConfiguration to the newly created check.

geometryCheckFactories

Get all geometry check factories that are compatible with layer and have all of the flags set.

registerGeometryCheck

Register a new geometry check factory.

geometryCheck(self, checkId: str, context: QgsGeometryCheckContext, geometryCheckConfig: Dict[str, Any]) → QgsGeometryCheck

Create a new geometryCheck of type checkId Pass the context and geometryCheckConfiguration to the newly created check. Ownership is transferred to the caller.

New in version 3.4.

Parameters
Return type

QgsGeometryCheck

geometryCheckFactories(self, layer: QgsVectorLayer, type: QgsGeometryCheck.CheckType, flags: Union[QgsGeometryCheck.Flags, QgsGeometryCheck.Flag] = 0) → object

Get all geometry check factories that are compatible with layer and have all of the flags set.

New in version 3.4.

Parameters
Return type

object

registerGeometryCheck(self, checkFactory: QgsGeometryCheckFactory)

Register a new geometry check factory.

New in version 3.4.

Parameters

checkFactory (QgsGeometryCheckFactory) –