18#ifndef QGS_GEOMETRY_CHECKER_H
19#define QGS_GEOMETRY_CHECKER_H
21#include "qgis_analysis.h"
58 QgsGeometryChecker(
const QList<QgsGeometryCheck *> &checks, std::unique_ptr<QgsGeometryCheckContext> context,
const QMap<QString, QgsFeaturePool *> &
featurePools );
60 QFuture<void>
execute(
int *totalSteps =
nullptr );
62 const QList<QgsGeometryCheck *>
getChecks()
const {
return mChecks; }
64 void setMergeAttributeIndices(
const QMap<QString, int> &mergeAttributeIndices ) { mMergeAttributeIndices = mergeAttributeIndices; }
66 const QMap<QString, QgsFeaturePool *> &
featurePools()
const {
return mFeaturePools; }
84 QList<QgsGeometryCheck *> mChecks;
85 std::unique_ptr<QgsGeometryCheckContext> mContext;
86 QList<QgsGeometryCheckError *> mCheckErrors;
87 QStringList mMessages;
88 QMutex mErrorListMutex;
89 QMap<QString, int> mMergeAttributeIndices;
91 QMap<QString, QgsFeaturePool *> mFeaturePools;
93 void runCheck(
const QMap<QString, QgsFeaturePool *> &featurePools,
const QgsGeometryCheck *check );
96 void emitProgressValue();
A feature pool is based on a vector layer and caches features.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Base configuration for geometry checks.
This represents an error reported by a geometry check.
Base class for geometry checks.
QFuture< void > execute(int *totalSteps=nullptr)
QgsGeometryChecker(const QList< QgsGeometryCheck * > &checks, std::unique_ptr< QgsGeometryCheckContext > context, const QMap< QString, QgsFeaturePool * > &featurePools)
Constructor.
QStringList getMessages() const
void progressValue(int value)
bool fixError(QgsGeometryCheckError *error, int method, bool triggerRepaint=false)
void errorAdded(QgsGeometryCheckError *error)
void errorUpdated(QgsGeometryCheckError *error, bool statusChanged)
void setMergeAttributeIndices(const QMap< QString, int > &mergeAttributeIndices)
const QMap< QString, QgsFeaturePool * > & featurePools() const
const QList< QgsGeometryCheck * > getChecks() const
QgsGeometryCheckContext * getContext() const
Base class for all map layer types.
Represents a vector layer which manages a vector based dataset.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features