QgsGeometryMissingVertexCheck class
A topology check for missing vertices.
Contents
Any vertex which is on the border of another polygon but no corresponding vertex can be found on the other polygon will be reported as an error.
Base classes
- class QgsGeometryCheck
- This class implements a geometry check.
Public types
- enum ResolutionMethod { NoChange, AddMissingVertex }
- The available resolutions for missing vertex check.
Constructors, destructors, conversion operators
- QgsGeometryMissingVertexCheck(const QgsGeometryCheckContext* context, const QVariantMap& geometryCheckConfiguration) explicit
- Creates a new missing vertex geometry check with context and the provided geometryCheckConfiguration.
Public functions
-
auto checkType() const -> QgsGeometryCheck::
CheckType override - Returns the check type.
- void collectErrors(const QMap<QString, QgsFeaturePool*>& featurePools, QList<QgsGeometryCheckError*>& errors, QStringList& messages, QgsFeedback* feedback, const LayerFeatureIds& ids = LayerFeatureIds()) const override
- The main worker method.
-
auto compatibleGeometryTypes() const -> QList<QgsWkbTypes::
GeometryType> override - A list of geometry types for which this check can be performed.
- auto description() const -> QString override
- Returns a human readable description for this check.
- void fixError(const QMap<QString, QgsFeaturePool*>& featurePools, QgsGeometryCheckError* error, int method, const QMap<QString, int>& mergeAttributeIndices, Changes& changes) const override
- Fix the error error with the specified method.
- auto flags() const -> QgsGeometryCheck::Flags override
- Flags for this geometry check.
- auto id() const -> QString override
- Returns an id for this check.
- auto resolutionMethods() const -> QStringList override
- Returns a list of descriptions for available resolutions for errors.
Enum documentation
enum QgsGeometryMissingVertexCheck:: ResolutionMethod
The available resolutions for missing vertex check.
| Enumerators | |
|---|---|
| NoChange |
Do nothing. |
| AddMissingVertex |
Add the missing vertex. |
Function documentation
QgsGeometryCheck:: CheckType QgsGeometryMissingVertexCheck:: checkType() const override
Returns the check type.
void QgsGeometryMissingVertexCheck:: collectErrors(const QMap<QString, QgsFeaturePool*>& featurePools,
QList<QgsGeometryCheckError*>& errors,
QStringList& messages,
QgsFeedback* feedback,
const LayerFeatureIds& ids = LayerFeatureIds()) const override
The main worker method.
Check all features available from featurePools and write errors found to errors. Other status messages can be written to messages. Progress should be reported to feedback. Only features and layers listed in ids should be checked.
QList<QgsWkbTypes:: GeometryType> QgsGeometryMissingVertexCheck:: compatibleGeometryTypes() const override
A list of geometry types for which this check can be performed.
QString QgsGeometryMissingVertexCheck:: description() const override
Returns a human readable description for this check.
void QgsGeometryMissingVertexCheck:: fixError(const QMap<QString, QgsFeaturePool*>& featurePools,
QgsGeometryCheckError* error,
int method,
const QMap<QString, int>& mergeAttributeIndices,
Changes& changes) const override
Fix the error error with the specified method.
QString QgsGeometryMissingVertexCheck:: id() const override
Returns an id for this check.
QStringList QgsGeometryMissingVertexCheck:: resolutionMethods() const override
Returns a list of descriptions for available resolutions for errors.
The index will be passed as method to