16 #ifndef QGS_GEOMETRY_CHECK_H
17 #define QGS_GEOMETRY_CHECK_H
19 #include <QApplication>
21 #include <QStringList>
24 #include "qgis_analysis.h"
112 QMap<QString, QgsFeatureIds>
toMap()
const
119 return ids.isEmpty();
166 AvailableInValidation = 1 << 1
168 Q_DECLARE_FLAGS( Flags, Flag )
205 return what == other.
what && type == other.
type && vidx == other.
vidx;
213 typedef QMap<QString, QMap<QgsFeatureId, QList<QgsGeometryCheck::Change> > >
Changes;
237 return mConfiguration.value( name,
QgsSettings().value(
"/geometry_checker/" +
id() +
"/" + name, defaultValue ) ).value<T>();
259 virtual QgsGeometryCheck::Flags flags()
const;
285 virtual QList<QgsGeometryCheckResolutionMethod> availableResolutionMethods()
const;
294 Q_DECL_DEPRECATED
virtual QStringList resolutionMethods() const
SIP_DEPRECATED;
301 virtual QString description() const = 0;
308 virtual QString
id() const = 0;
332 QMap<QString, QgsFeatureIds> allLayerFeatureIds(
const QMap<QString, QgsFeaturePool *> &featurePools )
const SIP_SKIP;
340 void replaceFeatureGeometryPart(
const QMap<QString, QgsFeaturePool *> &featurePools,
const QString &layerId,
QgsFeature &feature,
int partIdx,
QgsAbstractGeometry *newPartGeom, Changes &changes )
const SIP_SKIP;
348 void deleteFeatureGeometryPart(
const QMap<QString, QgsFeaturePool *> &featurePools,
const QString &layerId,
QgsFeature &feature,
int partIdx, Changes &changes )
const SIP_SKIP;
356 void deleteFeatureGeometryRing(
const QMap<QString, QgsFeaturePool *> &featurePools,
const QString &layerId,
QgsFeature &feature,
int partIdx,
int ringIdx, Changes &changes )
const SIP_SKIP;
367 double scaleFactor(
const QPointer<QgsVectorLayer> &layer )
const SIP_SKIP;
370 #endif // QGS_GEOMETRY_CHECK_H