18#ifndef QGS_GEOMETRY_CHECKER_H
19#define QGS_GEOMETRY_CHECKER_H
21#include "qgis_analysis.h"
54 QFuture<void>
execute(
int *totalSteps =
nullptr );
56 const QList<QgsGeometryCheck *>
getChecks()
const {
return mChecks; }
58 void setMergeAttributeIndices(
const QMap<QString, int> &mergeAttributeIndices ) { mMergeAttributeIndices = mergeAttributeIndices; }
60 const QMap<QString, QgsFeaturePool *> &
featurePools()
const {
return mFeaturePools; }
78 QList<QgsGeometryCheck *> mChecks;
80 QList<QgsGeometryCheckError *> mCheckErrors;
81 QStringList mMessages;
82 QMutex mErrorListMutex;
83 QMap<QString, int> mMergeAttributeIndices;
85 QMap<QString, QgsFeaturePool *> mFeaturePools;
87 void runCheck(
const QMap<QString, QgsFeaturePool *> &featurePools,
const QgsGeometryCheck *check );
90 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)
QStringList getMessages() const
void progressValue(int value)
bool fixError(QgsGeometryCheckError *error, int method, bool triggerRepaint=false)
QgsGeometryChecker(const QList< QgsGeometryCheck * > &checks, QgsGeometryCheckContext *context, const QMap< QString, QgsFeaturePool * > &featurePools)
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