18#ifndef QGS_GEOMETRY_TYPE_CHECK_H
19#define QGS_GEOMETRY_TYPE_CHECK_H
39 , mFlatType( flatType )
61 , mAllowedTypes( allowedTypes )
64 QList<QgsSingleGeometryCheckError *> processGeometry(
const QgsGeometry &geometry )
const override;
65 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices, Changes &changes )
const override;
66 Q_DECL_DEPRECATED QStringList resolutionMethods()
const override;
68 QString id()
const override;
73 static QString factoryDescription()
SIP_SKIP;
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.