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;}
76 QList<QgsGeometryCheck *> mChecks;
78 QList<QgsGeometryCheckError *> mCheckErrors;
79 QStringList mMessages;
80 QMutex mErrorListMutex;
81 QMap<QString, int> mMergeAttributeIndices;
83 QMap<QString, QgsFeaturePool *> mFeaturePools;
85 void runCheck(
const QMap<QString, QgsFeaturePool *> &featurePools,
const QgsGeometryCheck *check );
88 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.
const QMap< QString, QgsFeaturePool * > featurePools() const
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 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.