19#ifndef QGS_GEOMETRY_CHECKER_H
20#define QGS_GEOMETRY_CHECKER_H
27#include "qgis_analysis.h"
53 QFuture<void> execute(
int *totalSteps =
nullptr );
55 const QList<QgsGeometryCheck *>
getChecks()
const {
return mChecks; }
57 void setMergeAttributeIndices(
const QMap<QString, int> &mergeAttributeIndices ) { mMergeAttributeIndices = mergeAttributeIndices; }
59 const QMap<QString, QgsFeaturePool *> &
featurePools()
const {
return mFeaturePools; }
77 QList<QgsGeometryCheck *> mChecks;
79 QList<QgsGeometryCheckError *> mCheckErrors;
80 QStringList mMessages;
81 QMutex mErrorListMutex;
82 QMap<QString, int> mMergeAttributeIndices;
84 QMap<QString, QgsFeaturePool *> mFeaturePools;
86 void runCheck(
const QMap<QString, QgsFeaturePool *> &featurePools,
const QgsGeometryCheck *check );
89 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.
This class implements a geometry check.
Manages and runs a set of geometry checks.
QStringList getMessages() const
void progressValue(int value)
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 data sets.