Class: QgsGeometryCheckRegistry¶
-
class
qgis.analysis.
QgsGeometryCheckRegistry
¶ Bases:
sip.wrapper
This class manages all known geometry check factories.
QgsGeometryCheckRegistry
is not usually directly created, but rather accessed throughQgsAnalysis.geometryCheckRegistry()
.Note
This class is a technology preview and unstable API.
New in version 3.4.
QgsGeometryCheckRegistry() Constructor for
QgsGeometryCheckRegistry
.QgsGeometryCheckRegistry
is not usually directly created, but rather accessed throughQgsAnalysis.geometryCheckRegistry()
.QgsGeometryCheckRegistry(
QgsGeometryCheckRegistry
)Methods
Create a new geometryCheck of type
checkId
Pass thecontext
andgeometryCheckConfiguration
to the newly created check.Returns all geometry check factories that are compatible with
layer
and have all of theflags
set.Registers a new geometry check factory.
-
geometryCheck
(self, checkId: str, context: QgsGeometryCheckContext, geometryCheckConfig: Dict[str, Any]) → QgsGeometryCheck¶ Create a new geometryCheck of type
checkId
Pass thecontext
andgeometryCheckConfiguration
to the newly created check. Ownership is transferred to the caller.New in version 3.4.
- Parameters
checkId (str) –
context (QgsGeometryCheckContext) –
geometryCheckConfig (Dict[str) –
- Return type
-
geometryCheckFactories
(self, layer: QgsVectorLayer, type: QgsGeometryCheck.CheckType, flags: Union[QgsGeometryCheck.Flags, QgsGeometryCheck.Flag] = QgsGeometryCheck.Flags()) → List[QgsGeometryCheckFactory]¶ Returns all geometry check factories that are compatible with
layer
and have all of theflags
set.New in version 3.4.
- Parameters
layer (QgsVectorLayer) –
type (QgsGeometryCheck.CheckType) –
flags (Union[QgsGeometryCheck.Flags) –
- Return type
List[QgsGeometryCheckFactory]
-
registerGeometryCheck
(self, checkFactory: QgsGeometryCheckFactory)¶ Registers a new geometry check factory.
New in version 3.4.
- Parameters
checkFactory (QgsGeometryCheckFactory) –
-