QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
23 QList<QgsGeometryCheckError *> &errors,
32 for (
const auto error : singleErrors )
33 errors.append( convertToGeometryCheckError( error, layerFeature ) );
QVariant value() const
An additional value for the error.
virtual QList< QgsWkbTypes::GeometryType > compatibleGeometryTypes() const =0
A list of geometry types for which this check can be performed.
QgsGeometry errorLocation() const
The exact location of the error.
QgsGeometryCheckErrorSingle(QgsSingleGeometryCheckError *singleError, const QgsGeometryCheckerUtils::LayerFeature &layerFeature)
Creates a new error for a QgsSingleGeometryCheck.
QgsFeatureId featureId() const
The id of the feature on which this error has been detected.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
QMap< QString, QgsFeatureIds > allLayerFeatureIds(const QMap< QString, QgsFeaturePool * > &featurePools) const
Returns all layers and feature ids.
virtual QString description() const =0
Returns a human readable description for this check.
const QgsSingleGeometryCheck * mCheck
QgsVertexId vertexId() const
The vertex id of the error.
virtual void update(const QgsSingleGeometryCheckError *other)
Update this error with the information from other.
QgsGeometry mErrorLocation
QMap< QString, QgsFeatureIds > toMap() const
virtual QList< QgsSingleGeometryCheckError * > processGeometry(const QgsGeometry &geometry) const =0
Check the geometry for errors.
virtual QString description() const
A human readable description of this error.
bool handleChanges(const QgsGeometryCheck::Changes &changes) override
Apply a list of changes.
void collectErrors(const QMap< QString, QgsFeaturePool * > &featurePools, QList< QgsGeometryCheckError * > &errors, QStringList &messages, QgsFeedback *feedback=nullptr, const QgsGeometryCheck::LayerFeatureIds &ids=QgsGeometryCheck::LayerFeatureIds()) const FINAL
The main worker method.
virtual bool handleChanges(const QgsGeometryCheck::Changes &changes)
Apply a list of changes.
bool equals(const QgsGeometry &geometry) const
Test if this geometry is exactly equal to another geometry.
A list of layers and feature ids for each of these layers.
const QgsSingleGeometryCheck * check() const
The check that created this error.
const QgsGeometryCheckContext * mContext
virtual bool isEqual(const QgsSingleGeometryCheckError *other) const
Check if this error is equal to other.
Utility class for identifying a unique vertex within a geometry.
const QString & layerId() const
The id of the layer on which this error has been detected.
QgsSingleGeometryCheckError * singleError() const
The underlying single error.
virtual bool handleChanges(const QList< QgsGeometryCheck::Change > &changes)
Apply a list of changes.