Class: QgsGeometryCheckRegistry¶
A registry for 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.
Added in version 3.4.
Methods
Create a new geometryCheck of type checkId Pass the context and geometryCheckConfiguration to the newly created check. |
|
Returns all geometry check factories that are compatible with layer and have all of the flags set. |
|
Registers a new geometry check factory. |
- class qgis.analysis.QgsGeometryCheckRegistry[source]¶
Bases:
object
- __init__()
Constructor for QgsGeometryCheckRegistry. QgsGeometryCheckRegistry is not usually directly created, but rather accessed through
QgsAnalysis.geometryCheckRegistry()
.
- __init__(a0: QgsGeometryCheckRegistry)
- Parameters:
- geometryCheck(self, checkId: str | None, context: QgsGeometryCheckContext | None, geometryCheckConfig: Dict[str, Any]) QgsGeometryCheck | None [source]¶
Create a new geometryCheck of type
checkId
Pass thecontext
andgeometryCheckConfiguration
to the newly created check. Ownership is transferred to the caller.Added in version 3.4.
- Parameters:
checkId (Optional[str])
context (Optional[QgsGeometryCheckContext])
geometryCheckConfig (Dict[str, Any])
- Return type:
Optional[QgsGeometryCheck]
- geometryCheckFactories(self, layer: QgsVectorLayer | None, type: QgsGeometryCheck.CheckType, flags: QgsGeometryCheck.Flags | QgsGeometryCheck.Flag = QgsGeometryCheck.Flags()) List[QgsGeometryCheckFactory] ¶
Returns all geometry check factories that are compatible with
layer
and have all of theflags
set.Added in version 3.4.
- Parameters:
layer (Optional[QgsVectorLayer])
type (QgsGeometryCheck.CheckType)
flags (Union[QgsGeometryCheck.Flags, QgsGeometryCheck.Flag] = QgsGeometryCheck.Flags())
- Return type:
List[QgsGeometryCheckFactory]
- registerGeometryCheck(self, checkFactory: QgsGeometryCheckFactory | None)[source]¶
Registers a new geometry check factory.
Added in version 3.4.
- Parameters:
checkFactory (Optional[QgsGeometryCheckFactory])