| QGIS API Documentation 3.99.0-Master (f78f5286a64)
    | 
A duplicate geometry check error. More...
#include <qgsgeometryduplicatecheck.h>

| Public Member Functions | |
| QgsGeometryDuplicateCheckError (const QgsGeometryCheck *check, const QgsGeometryCheckerUtils::LayerFeature &layerFeature, const QgsPointXY &errorLocation, const QMap< QString, QgsFeaturePool * > &featurePools, const QMap< QString, QList< QgsFeatureId > > &duplicates) | |
| Constructor. | |
| QMap< QString, QList< QgsFeatureId > > | duplicates () const | 
| Returns the duplicates. | |
| bool | isEqual (QgsGeometryCheckError *other) const override | 
| Returns if the other error is equivalent. | |
|  Public Member Functions inherited from QgsGeometryCheckError | |
| 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 errorLocation. | |
| virtual | ~QgsGeometryCheckError ()=default | 
| virtual QgsRectangle | affectedAreaBBox () const | 
| The bounding box of the affected area of the error. | |
| const QgsGeometryCheck * | check () const | 
| The geometry check that created this error. | |
| virtual bool | closeMatch (QgsGeometryCheckError *) const | 
| Check if this error is almost equal to other. | |
| virtual QgsRectangle | contextBoundingBox () const | 
| The context of the error. | |
| virtual QString | description () const | 
| The error description. | |
| QgsFeatureId | featureId () const | 
| The id of the feature on which this error has been detected. | |
| QgsGeometry | geometry () const | 
| The geometry of the error in map units. | |
| virtual bool | handleChanges (const QgsGeometryCheck::Changes &changes) | 
| Apply a list of changes. | |
| virtual QIcon | icon () const | 
| Returns an icon that should be shown for this kind of error. | |
| virtual QMap< QString, QgsFeatureIds > | involvedFeatures () const | 
| Returns a list of involved features. | |
| const QString & | layerId () const | 
| The id of the layer on which this error has been detected. | |
| const QgsPointXY & | location () const | 
| The location of the error in map units. | |
| const QgsGeometryCheckError & | operator= (const QgsGeometryCheckError &)=delete | 
| QString | resolutionMessage () const | 
| A message with details, how the error has been resolved. | |
| void | setFixed (int method) | 
| Set the status to fixed and specify the method that has been used to fix the error. | |
| void | setFixFailed (const QString &reason) | 
| Set the error status to failed and specify the reason for failure. | |
| void | setObsolete () | 
| Set the error status to obsolete. | |
| Status | status () const | 
| The status of the error. | |
| virtual void | update (const QgsGeometryCheckError *other) | 
| Update this error with the information from other. | |
| QVariant | value () const | 
| An additional value for the error. | |
| ValueType | valueType () const | 
| The type of the value. | |
| const QgsVertexId & | vidx () const | 
| The id of the affected vertex. | |
| Additional Inherited Members | |
|  Public Types inherited from QgsGeometryCheckError | |
| enum | Status { StatusPending , StatusFixFailed , StatusFixed , StatusObsolete } | 
| The status of an error.  More... | |
| enum | ValueType { ValueLength , ValueArea , ValueOther } | 
| Describes the type of an error value.  More... | |
|  Protected Member Functions inherited from QgsGeometryCheckError | |
| QgsGeometryCheckError (const QgsGeometryCheck *check, const QString &layerId, QgsFeatureId featureId, const QgsGeometry &geometry, 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 layer with layerId and featureId. | |
|  Protected Attributes inherited from QgsGeometryCheckError | |
| const QgsGeometryCheck * | mCheck = nullptr | 
| QgsPointXY | mErrorLocation | 
| QgsFeatureId | mFeatureId | 
| QgsGeometry | mGeometry | 
| QString | mLayerId | 
| QString | mResolutionMessage | 
| Status | mStatus | 
| QVariant | mValue | 
| ValueType | mValueType | 
| QgsVertexId | mVidx | 
A duplicate geometry check error.
Definition at line 29 of file qgsgeometryduplicatecheck.h.
| 
 | inline | 
Constructor.
Definition at line 33 of file qgsgeometryduplicatecheck.h.
| 
 | inline | 
Returns the duplicates.
Definition at line 39 of file qgsgeometryduplicatecheck.h.
| 
 | inlineoverridevirtual | 
Returns if the other error is equivalent.
Reimplemented from QgsGeometryCheckError.
Definition at line 42 of file qgsgeometryduplicatecheck.h.