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;
157 const QVariantMap &configuration )
161 void collectErrors(
const QMap<QString, QgsFeaturePool *> &featurePools,
162 QList<QgsGeometryCheckError *> &errors,
163 QStringList &messages,
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Base configuration for geometry checks.
Wraps a QgsSingleGeometryError into a standard QgsGeometryCheckError.
This represents an error reported by a geometry check.
This class implements a geometry check.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
A layer feature combination to uniquely identify and access a feature in a set of layers.
Contains utilities required for geometry checks.
A geometry is the spatial representation of a feature.
An error from a QgsSingleGeometryCheck.
virtual ~QgsSingleGeometryCheckError()=default
QgsSingleGeometryCheckError(const QgsSingleGeometryCheck *check, const QgsGeometry &geometry, const QgsGeometry &errorLocation, const QgsVertexId &vertexId=QgsVertexId())
Creates a new single geometry check error.
QgsGeometry mErrorLocation
Base class for geometry checks for a single geometry without any context of the layer or other layers...
QgsSingleGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration)
Creates a new single geometry check.
A list of layers and feature ids for each of these layers.
Utility class for identifying a unique vertex within a geometry.