18#ifndef QGSGEOMETRYMISSINGVERTEXCHECK_H
19#define QGSGEOMETRYMISSINGVERTEXCHECK_H
64 QIcon
icon()
const override;
68 QMap<QString, QgsFeatureIds> mInvolvedFeatures;
95 Q_ENUM( ResolutionMethod )
101 QgsGeometryCheck::Result collectErrors(
const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages,
QgsFeedback *feedback,
const LayerFeatureIds &ids = LayerFeatureIds() )
const override;
102 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices, Changes &changes )
const override;
103 Q_DECL_DEPRECATED QStringList resolutionMethods()
const override;
106 QString id()
const override;
107 QList<Qgis::GeometryType> compatibleGeometryTypes()
const override;
112 static QList<Qgis::GeometryType> factoryCompatibleGeometryTypes()
SIP_SKIP;
114 static QString factoryDescription()
SIP_SKIP;
115 static QString factoryId()
SIP_SKIP;
Curve polygon geometry type.
A feature pool is based on a vector layer and caches features.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Base configuration for geometry checks.
This represents an error reported by a geometry check.
ValueType
Describes the type of an error value.
@ ValueOther
The value if of another type.
virtual QMap< QString, QgsFeatureIds > involvedFeatures() const
Returns a list of involved features.
const QgsVertexId & vidx() const
The id of the affected vertex.
virtual QString description() const
The error description.
QgsGeometryCheckError(const QgsGeometryCheck *check, const QgsGeometryCheckerUtils::LayerFeature &layerFeature, const QgsPointXY &errorLocation, QgsVertexId vidx=QgsVertexId(), const QVariant &value=QVariant(), ValueType valueType=ValueOther)
Create a new geometry check error with the parent check and for the layerFeature pair at the errorLoc...
ValueType valueType() const
The type of the value.
QVariant value() const
An additional value for the error.
const QgsGeometryCheck * check() const
The geometry check that created this error.
virtual QgsRectangle affectedAreaBBox() const
The bounding box of the affected area of the error.
virtual QIcon icon() const
Returns an icon that should be shown for this kind of error.
Base class for geometry checks.
CheckType
The type of a check.
Result
Result of the geometry checker operation.
QgsGeometryCheck(const QgsGeometryCheckContext *context, const QVariantMap &configuration)
Create a new geometry check.
A layer feature combination to uniquely identify and access a feature in a set of layers.
Contains utilities required for geometry checks.
QgsGeometryMissingVertexCheckError(const QgsGeometryCheck *check, const QgsGeometryCheckerUtils::LayerFeature &layerFeature, const QgsPointXY &errorLocation, QgsVertexId vidx=QgsVertexId(), const QVariant &value=QVariant(), ValueType valueType=ValueOther)
Create a new missing vertex check error.
void setAffectedAreaBBox(const QgsRectangle &affectedAreaBBox)
Set the bounding box of the affected area.
void setInvolvedFeatures(const QMap< QString, QgsFeatureIds > &involvedFeatures)
The two involved features, that share a common boundary but not all common vertices on this boundary.
QMap< QString, QgsFeatureIds > involvedFeatures() const override
Returns a list of involved features.
QgsRectangle affectedAreaBBox() const override
The bounding box of the affected area of the error.
A topology check for missing vertices.
ResolutionMethod
The available resolutions for missing vertex check.
@ AddMissingVertex
Add the missing vertex.
QgsGeometryMissingVertexCheck(const QgsGeometryCheckContext *context, const QVariantMap &geometryCheckConfiguration)
Creates a new missing vertex geometry check with context and the provided geometryCheckConfiguration.
Point geometry type, with support for z-dimension and m-values.
A rectangle specified with double values.
Represents a vector layer which manages a vector based dataset.
void CPL_STDCALL collectErrors(CPLErr, int, const char *msg)
Utility class for identifying a unique vertex within a geometry.