QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGS_GEOMETRY_TYPE_CHECK_H
19 #define QGS_GEOMETRY_TYPE_CHECK_H
35 , mFlatType( flatType )
57 , mAllowedTypes( allowedTypes )
61 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices, Changes &changes )
const override;
64 QString
id()
const override;
69 static QString factoryDescription()
SIP_SKIP;
74 enum ResolutionMethod { Convert, Delete, NoChange };
78 #endif // QGS_GEOMETRY_TYPE_CHECK_H
virtual QString description() const =0
Returns a human readable description for this check.
QgsGeometryTypeCheckError(const QgsSingleGeometryCheck *check, const QgsGeometry &geometry, const QgsGeometry &errorLocation, QgsWkbTypes::Type flatType)
static QList< QgsWkbTypes::GeometryType > factoryCompatibleGeometryTypes()
Type
The WKB type describes the number of dimensions a geometry has.
virtual Q_DECL_DEPRECATED QStringList resolutionMethods() const
Returns a list of descriptions for available resolutions for errors.
An error from a QgsSingleGeometryCheck.
QgsGeometryTypeCheck(QgsGeometryCheckContext *context, const QVariantMap &configuration, int allowedTypes)
virtual QList< QgsSingleGeometryCheckError * > processGeometry(const QgsGeometry &geometry) const =0
Check the geometry for errors.
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...
This class implements a geometry 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 QString id() const =0
Returns an id for this check.
virtual CheckType checkType() const =0
Returns the check type.
Base configuration for geometry checks.
virtual bool isEqual(const QgsSingleGeometryCheckError *other) const
Check if this error is equal to other.
A geometry is the spatial representation of a feature.
Represents a vector layer which manages a vector based data sets.
A geometry type check error.
CheckType
The type of a check.
QList< QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override
A list of geometry types for which this check can be performed.
This represents an error reported by a geometry check.
static bool factoryIsCompatible(QgsVectorLayer *layer)