18#ifndef QGS_GEOMETRY_TYPE_CHECK_H
19#define QGS_GEOMETRY_TYPE_CHECK_H
35 , mFlatType( flatType )
57 , mAllowedTypes( allowedTypes )
60 QList<QgsSingleGeometryCheckError *> processGeometry(
const QgsGeometry &geometry )
const override;
61 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices, Changes &changes )
const override;
62 Q_DECL_DEPRECATED QStringList resolutionMethods()
const override;
64 QString id()
const override;
69 static QString factoryDescription()
SIP_SKIP;
74 enum ResolutionMethod { Convert, Delete, NoChange };
Base configuration for geometry checks.
This represents an error reported by a geometry check.
This class implements a geometry check.
CheckType
The type of a check.
A geometry type check error.
QgsGeometryTypeCheckError(const QgsSingleGeometryCheck *check, const QgsGeometry &geometry, const QgsGeometry &errorLocation, QgsWkbTypes::Type flatType)
QList< QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override
A list of geometry types for which this check can be performed.
static QList< QgsWkbTypes::GeometryType > factoryCompatibleGeometryTypes()
QgsGeometryTypeCheck(QgsGeometryCheckContext *context, const QVariantMap &configuration, int allowedTypes)
static bool factoryIsCompatible(QgsVectorLayer *layer)
A geometry is the spatial representation of a feature.
An error from a QgsSingleGeometryCheck.
virtual bool isEqual(const QgsSingleGeometryCheckError *other) const
Check if this error is equal to other.
virtual QString description() const
A human readable description of this error.
Base class for geometry checks for a single geometry without any context of the layer or other layers...
Represents a vector layer which manages a vector based data sets.
Type
The WKB type describes the number of dimensions a geometry has.