QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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,
188 #endif // QGSSINGLEGEOMETRYCHECK_H
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
An error from a QgsSingleGeometryCheck.
QgsGeometry mErrorLocation
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.
Base class for geometry checks for a single geometry without any context of the layer or other layers...
This class implements a geometry check.
virtual bool handleChanges(const QgsGeometryCheck::Changes &changes)
Apply a list of changes.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
QgsSingleGeometryCheckError(const QgsSingleGeometryCheck *check, const QgsGeometry &geometry, const QgsGeometry &errorLocation, const QgsVertexId &vertexId=QgsVertexId())
Creates a new single geometry check error.
Base configuration for geometry checks.
A layer feature combination to uniquely identify and access a feature in a set of layers.
const QgsGeometryCheckError & operator=(const QgsGeometryCheckError &)=delete
A list of layers and feature ids for each of these layers.
Wraps a QgsSingleGeometryError into a standard QgsGeometryCheckError. The single error can be obtaine...
A geometry is the spatial representation of a feature.
QgsSingleGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration)
Creates a new single geometry check.
Utility class for identifying a unique vertex within a geometry.
Contains utilities required for geometry checks.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
This represents an error reported by a geometry check.