16 #ifndef QGSSINGLEGEOMETRYCHECK_H 17 #define QGSSINGLEGEOMETRYCHECK_H 20 #include <QCoreApplication> 26 #include "qgis_analysis.h" 48 , mGeometry( geometry )
49 , mErrorLocation( errorLocation )
50 , mVertexId( vertexId )
71 virtual bool handleChanges(
const QList<QgsGeometryCheck::Change> &changes )
SIP_SKIP;
76 virtual QString description()
const;
153 const QVariantMap &configuration )
157 void collectErrors(
const QMap<QString, QgsFeaturePool *> &featurePools,
158 QList<QgsGeometryCheckError *> &errors,
159 QStringList &messages,
171 virtual QList<QgsSingleGeometryCheckError *> processGeometry(
const QgsGeometry &geometry )
const = 0;
184 #endif // QGSSINGLEGEOMETRYCHECK_H QgsSingleGeometryCheckError(const QgsSingleGeometryCheck *check, const QgsGeometry &geometry, const QgsGeometry &errorLocation, const QgsVertexId &vertexId=QgsVertexId())
Creates a new single geometry check error.
QgsSingleGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration)
Creates a new single geometry check.
A geometry is the spatial representation of a feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Base class for geometry checks for a single geometry without any context of the layer or other layers...
Base class for feedback objects to be used for cancellation of something running in a worker thread...
Base configuration for geometry checks.
Utility class for identifying a unique vertex within a geometry.
A layer feature combination to uniquely identify and access a feature in a set of layers...
This class implements a geometry check.
Wraps a QgsSingleGeometryError into a standard QgsGeometryCheckError.
A list of layers and feature ids for each of these layers.
An error from a QgsSingleGeometryCheck.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
virtual bool handleChanges(const QgsGeometryCheck::Changes &changes)
Apply a list of changes.
This represents an error reported by a geometry check.
virtual void collectErrors(const QMap< QString, QgsFeaturePool *> &featurePools, QList< QgsGeometryCheckError *> &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids=QgsGeometryCheck::LayerFeatureIds()) const =0
The main worker method.
QgsGeometry mErrorLocation