Class: QgsGeometryCheckerUtils¶
Contains utilities required for geometry checks.
Note
This class is a technology preview and unstable API.
Added in version 3.4.
List of all members, including inherited members
Classes
A layer feature combination to uniquely identify and access a feature in a set of layers. |
|
Contains a set of layers and feature ids in those layers to pass to a geometry check. |
- class qgis.analysis.QgsGeometryCheckerUtils[source]¶
Bases:
object- class LayerFeature[source]¶
Bases:
objectA layer feature combination to uniquely identify and access a feature in a set of layers.
Added in version 3.4.
- __init__(pool: QgsFeaturePool | None, feature: QgsFeature, context: QgsGeometryCheckContext | None, useMapCrs: bool)
Create a new layer/feature combination. The layer is defined by
pool,featureneeds to be from this layer. IfuseMapCrsisTrue, geometries will be reprojected to the mapCrs defined incontext.- Parameters:
pool (Optional[QgsFeaturePool])
feature (QgsFeature)
context (Optional[QgsGeometryCheckContext])
useMapCrs (bool)
- __init__(a0: QgsGeometryCheckerUtils.LayerFeature)
- Parameters:
- feature(self) QgsFeature[source]¶
Returns the feature. The geometry will not be reprojected regardless of useMapCrs.
- Return type:
- geometry(self) QgsGeometry[source]¶
Returns the geometry of this feature. If useMapCrs was specified, it will already be reprojected into the CRS specified in the context specified in the constructor.
- Return type: