Subgroup: Geometry

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: Methods

Signals

Attributes

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. If useMapCrs is True, geometries will be reprojected to the mapCrs defined in context.

QgsGeometryCheckerUtils.LayerFeature(QgsGeometryCheckerUtils.LayerFeature)

feature(self) → QgsFeature

Returns the feature. The geometry will not be reprojected regardless of useMapCrs.

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.

id(self) → str
layerId(self) → str

The layer id.

useMapCrs(self) → bool

Returns if the geometry is reprojected to the map CRS or not.

class LayerFeatures(QgsGeometryCheckerUtils.LayerFeatures)

Bases: sip.wrapper