18#ifndef QGS_GEOMETRY_TYPE_CHECK_H
19#define QGS_GEOMETRY_TYPE_CHECK_H
43 , mFlatType( flatType )
65 , mAllowedTypes( allowedTypes )
68 QList<QgsSingleGeometryCheckError *> processGeometry(
const QgsGeometry &geometry )
const override;
69 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices, Changes &changes )
const override;
70 Q_DECL_DEPRECATED QStringList resolutionMethods()
const override;
72 QString id()
const override;
77 static QString factoryDescription()
SIP_SKIP;
82 enum ResolutionMethod { Convert, Delete, NoChange };
WkbType
The WKB type describes the number of dimensions a geometry has.
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, Qgis::WkbType flatType)
Constructor for QgsGeometryTypeCheckError.
QList< Qgis::GeometryType > compatibleGeometryTypes() const override
A list of geometry types for which this check can be performed.
static QList< Qgis::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.