18 #ifndef QGS_GEOMETRY_DUPLICATE_CHECK_H
19 #define QGS_GEOMETRY_DUPLICATE_CHECK_H
34 const QMap<QString, QgsFeaturePool *> &featurePools,
35 const QMap<QString, QList<QgsFeatureId>> &duplicates )
37 , mDuplicates( duplicates )
39 QMap<QString, QList<QgsFeatureId>>
duplicates()
const {
return mDuplicates; }
51 QMap<QString, QList<QgsFeatureId>> mDuplicates;
53 static QString duplicatesString(
const QMap<QString, QgsFeaturePool *> &featurePools,
const QMap<QString, QList<QgsFeatureId>> &duplicates );
64 void collectErrors(
const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages,
QgsFeedback *feedback,
const LayerFeatureIds &ids = LayerFeatureIds() )
const override;
65 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices, Changes &changes )
const override;
69 QString
description()
const override {
return factoryDescription(); }
70 QString
id()
const override {
return factoryId(); }
76 static QString factoryId();
82 #endif // QGS_GEOMETRY_DUPLICATE_CHECK_H