QGIS API Documentation
3.6.0-Noosa (5873452)
|
An error produced by a QgsGeometryGapCheck. More...
#include <qgsgeometrygapcheck.h>
Public Member Functions | |
QgsGeometryGapCheckError (const QgsGeometryCheck *check, const QString &layerId, const QgsGeometry &geometry, const QMap< QString, QgsFeatureIds > &neighbors, double area, const QgsRectangle &gapAreaBBox) | |
Create a new gap check error produced by check on the layer layerId. More... | |
QgsRectangle | affectedAreaBBox () const override |
The bounding box of the affected area of the error. More... | |
bool | closeMatch (QgsGeometryCheckError *other) const override |
Check if this error is almost equal to other. More... | |
bool | handleChanges (const QgsGeometryCheck::Changes &) override |
Apply a list of changes. More... | |
bool | isEqual (QgsGeometryCheckError *other) const override |
Check if this error is equal to other. More... | |
const QMap< QString, QgsFeatureIds > & | neighbors () const |
A map of layers and feature ids of the neighbors of the gap. More... | |
void | update (const QgsGeometryCheckError *other) override |
Update this error with the information from other. More... | |
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. More... | |
virtual | ~QgsGeometryCheckError ()=default |
const QgsGeometryCheck * | check () const |
The geometry check that created this error. More... | |
virtual QString | description () const |
The error description. More... | |
QgsFeatureId | featureId () const |
The id of the feature on which this error has been detected. More... | |
QgsGeometry | geometry () const |
The geometry of the error in map units. More... | |
const QString & | layerId () const |
The id of the layer on which this error has been detected. More... | |
const QgsPointXY & | location () const |
The location of the error in map units. More... | |
const QgsGeometryCheckError & | operator= (const QgsGeometryCheckError &)=delete |
QString | resolutionMessage () const |
A message with details, how the error has been resolved. More... | |
void | setFixed (int method) |
Set the status to fixed and specify the method that has been used to fix the error. More... | |
void | setFixFailed (const QString &reason) |
Set the error status to failed and specify the reason for failure. More... | |
void | setObsolete () |
Set the error status to obsolete. More... | |
Status | status () const |
The status of the error. More... | |
QVariant | value () const |
An additional value for the error. More... | |
ValueType | valueType () const |
The type of the value. More... | |
const QgsVertexId & | vidx () const |
The id of the affected vertex. More... | |
An error produced by a QgsGeometryGapCheck.
Definition at line 31 of file qgsgeometrygapcheck.h.
|
inline |
Create a new gap check error produced by check on the layer layerId.
The geometry of the gap needs to be in map coordinates. The neighbors are a map of layer ids and feature ids. The area of the gap in map units and the bounding box of the gap in map units too.
Definition at line 41 of file qgsgeometrygapcheck.h.
|
inlineoverridevirtual |
The bounding box of the affected area of the error.
Reimplemented from QgsGeometryCheckError.
Definition at line 84 of file qgsgeometrygapcheck.h.
|
inlineoverridevirtual |
Check if this error is almost equal to other.
If this returns true, it can be used to update existing errors after re-checking.
Reimplemented from QgsGeometryCheckError.
Definition at line 64 of file qgsgeometrygapcheck.h.
|
inlineoverridevirtual |
Apply a list of changes.
Reimplemented from QgsGeometryCheckError.
Definition at line 79 of file qgsgeometrygapcheck.h.
|
inlineoverridevirtual |
Check if this error is equal to other.
Is reimplemented by subclasses with additional information, comparison of base information is done in parent class.
Reimplemented from QgsGeometryCheckError.
Definition at line 58 of file qgsgeometrygapcheck.h.
|
inline |
A map of layers and feature ids of the neighbors of the gap.
Definition at line 56 of file qgsgeometrygapcheck.h.
|
inlineoverridevirtual |
Update this error with the information from other.
Will be used to update existing errors whenever they are re-checked.
Reimplemented from QgsGeometryCheckError.
Definition at line 70 of file qgsgeometrygapcheck.h.