18 #ifndef QGS_GEOMETRY_SELFINTERSECTION_CHECK_H 19 #define QGS_GEOMETRY_SELFINTERSECTION_CHECK_H 36 , mIntersection( intersection )
41 bool handleChanges(
const QList<QgsGeometryCheck::Change> &changes )
override;
65 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices,
Changes &changes )
const override;
67 QString
description()
const override {
return factoryDescription(); }
68 QString
id()
const override {
return factoryId(); }
69 QgsGeometryCheck::Flags
flags()
const override {
return factoryFlags(); }
75 static QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes()
SIP_SKIP;
77 static QString factoryDescription()
SIP_SKIP;
78 static QgsGeometryCheck::Flags factoryFlags()
SIP_SKIP;
85 #endif // QGS_GEOMETRY_SELFINTERSECTION_CHECK_H QgsGeometrySelfIntersectionCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration=QVariantMap())
QList< QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override
A list of geometry types for which this check can be performed.
virtual bool isEqual(const QgsSingleGeometryCheckError *other) const
Check if this error is equal to other.
Base configuration for geometry checks.
CheckType
The type of a check.
A geometry is the spatial representation of a feature.
QgsGeometrySelfIntersectionCheckError(const QgsSingleGeometryCheck *check, const QgsGeometry &geometry, const QgsGeometry &errorLocation, QgsVertexId vertexId, const QgsGeometryUtils::SelfIntersection &intersection)
Base class for geometry checks for a single geometry without any context of the layer or other layers...
QString description() const override
Returns a human readable description for this check.
virtual bool handleChanges(const QList< QgsGeometryCheck::Change > &changes)
Apply a list of changes.
QgsGeometryCheck::Flags flags() const override
Flags for this geometry check.
Utility class for identifying a unique vertex within a geometry.
An error from a QgsSingleGeometryCheck.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
QString id() const override
Returns an id for this check.
virtual void fixError(const QMap< QString, QgsFeaturePool *> &featurePools, QgsGeometryCheckError *error, int method, const QMap< QString, int > &mergeAttributeIndices, Changes &changes) const
Fixes the error error with the specified method.
virtual QList< QgsSingleGeometryCheckError * > processGeometry(const QgsGeometry &geometry) const =0
Check the geometry for errors.
QgsGeometryCheck::CheckType checkType() const override
Returns the check type.
virtual QStringList resolutionMethods() const =0
Returns a list of descriptions for available resolutions for errors.
This represents an error reported by a geometry check.
Represents a vector layer which manages a vector based data sets.
virtual void update(const QgsSingleGeometryCheckError *other)
Update this error with the information from other.
const QgsGeometryUtils::SelfIntersection & intersection() const