18#ifndef QGSGEOMETRYCHECKERROR_H
19#define QGSGEOMETRYCHECKERROR_H
21#include "qgis_analysis.h"
79 const QString &
layerId()
const {
return mLayerId; }
110 virtual QString
description()
const {
return mCheck->description(); }
122 QVariant
value()
const {
return mValue; }
150 void setFixed(
int method );
155 void setFixFailed(
const QString &reason );
193 virtual QMap<QString, QgsFeatureIds> involvedFeatures() const
SIP_SKIP;
200 virtual QIcon icon() const;
222 QString mResolutionMessage;
This represents an error reported by a geometry check.
ValueType
Describes the type of an error value.
@ ValueArea
The value is an area.
@ ValueLength
The value is a length.
Status
The status of an error.
@ StatusPending
The error is detected and pending to be handled.
@ StatusFixed
The error is fixed.
@ StatusFixFailed
A fix has been tried on the error but failed.
Status status() const
The status of the error.
QString resolutionMessage() const
A message with details, how the error has been resolved.
const QgsVertexId & vidx() const
The id of the affected vertex.
QgsFeatureId featureId() const
The id of the feature on which this error has been detected.
virtual ~QgsGeometryCheckError()=default
virtual QString description() const
The error description.
ValueType valueType() const
The type of the value.
QVariant value() const
An additional value for the error.
void setObsolete()
Set the error status to obsolete.
const QgsGeometryCheck * check() const
The geometry check that created this error.
const QString & layerId() const
The id of the layer on which this error has been detected.
const QgsGeometryCheckError & operator=(const QgsGeometryCheckError &)=delete
const QgsPointXY & location() const
The location of the error in map units.
This class implements a geometry check.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
A layer feature combination to uniquely identify and access a feature in a set of layers.
A geometry is the spatial representation of a feature.
A class to represent a 2D point.
A rectangle specified with double values.
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
Utility class for identifying a unique vertex within a geometry.