18#ifndef QGS_GEOMETRY_OVERLAP_CHECK_H
19#define QGS_GEOMETRY_OVERLAP_CHECK_H
38 : mLayerId( vl->id() )
39 , mLayerName( vl->name() )
43 QString
layerId()
const {
return mLayerId;}
64 const QVariant &value,
81 QIcon
icon()
const override;
84 OverlappedFeature mOverlappedFeature;
117 void collectErrors(
const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages,
QgsFeedback *feedback,
const LayerFeatureIds &ids = LayerFeatureIds() )
const override;
118 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices, Changes &changes )
const override;
119 Q_DECL_DEPRECATED QStringList resolutionMethods()
const override;
122 QString id()
const override;
123 QgsGeometryCheck::Flags flags()
const override;
127 static QString factoryDescription()
SIP_SKIP;
128 static QString factoryId()
SIP_SKIP;
130 static QList<
Qgis::GeometryType> factoryCompatibleGeometryTypes()
SIP_SKIP;
136 const
double mOverlapThresholdMapUnits;
The Qgis class provides global constants for use throughout the application.
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.
virtual QMap< QString, QgsFeatureIds > involvedFeatures() const
Returns a list of involved features.
virtual QString description() const
The error description.
virtual bool isEqual(QgsGeometryCheckError *other) const
Check if this error is equal to other.
virtual bool closeMatch(QgsGeometryCheckError *) const
Check if this error is almost equal to other.
virtual QIcon icon() const
Returns an icon that should be shown for this kind of error.
virtual bool handleChanges(const QgsGeometryCheck::Changes &changes)
Apply a list of changes.
This class implements a geometry check.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
CheckType
The type of a check.
A layer feature combination to uniquely identify and access a feature in a set of layers.
An error of a QgsGeometryOverlapCheck.
const OverlappedFeature & overlappedFeature() const
Returns the overlapped feature.
Checks if geometries overlap.
ResolutionMethod
Available resolution methods.
@ Subtract
Subtract the overlap region from the polygon.
QList< Qgis::GeometryType > compatibleGeometryTypes() const override
A list of geometry types for which this check can be performed.
QgsGeometryCheck::CheckType checkType() const override
Returns the check type.
A geometry is the spatial representation of a feature.
A class to represent a 2D point.
Represents a vector layer which manages a vector based data sets.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
OverlappedFeature(QgsVectorLayer *vl, QgsFeatureId fid)
QString layerName() const
bool operator==(const OverlappedFeature &other) const
QgsFeatureId featureId() const