Class: QgsGeometryCheckerUtils¶
- class qgis.analysis.QgsGeometryCheckerUtils¶
Bases:
sip.wrapper
Contains utilities required for geometry checks.
Note
This class is a technology preview and unstable API.
New in version 3.4:
- class LayerFeature(pool: QgsFeaturePool, feature: QgsFeature, context: QgsGeometryCheckContext, useMapCrs: bool)¶
Bases:
sip.wrapper
Create a new layer/feature combination. The layer is defined by
pool
,feature
needs to be from this layer. IfuseMapCrs
isTrue
, geometries will be reprojected to the mapCrs defined incontext
.QgsGeometryCheckerUtils.LayerFeature(QgsGeometryCheckerUtils.LayerFeature)
A layer feature combination to uniquely identify and access a feature in a set of layers.
New in version 3.4.
- feature(self) QgsFeature ¶
Returns the feature. The geometry will not be reprojected regardless of useMapCrs.
- Return type
- geometry(self) QgsGeometry ¶
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
- id(self) str ¶
Returns a combination of the layerId and the feature id.
- Return type
str
- layerId(self) str ¶
The layer id.
- Return type
str
- useMapCrs(self) bool ¶
Returns if the geometry is reprojected to the map CRS or not.
- Return type
bool
- class LayerFeatures¶
Bases:
sip.wrapper
Contains a set of layers and feature ids in those layers to pass to a geometry check.
New in version 3.4.