QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
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;
116 void collectErrors(
const QMap<QString, QgsFeaturePool *> &featurePools, QList<QgsGeometryCheckError *> &errors, QStringList &messages,
QgsFeedback *feedback,
const LayerFeatureIds &ids = LayerFeatureIds() )
const override;
117 void fixError(
const QMap<QString, QgsFeaturePool *> &featurePools,
QgsGeometryCheckError *error,
int method,
const QMap<QString, int> &mergeAttributeIndices, Changes &changes )
const override;
121 QString
id()
const override;
122 QgsGeometryCheck::Flags
flags()
const override;
126 static QString factoryDescription()
SIP_SKIP;
127 static QString factoryId()
SIP_SKIP;
135 const
double mOverlapThresholdMapUnits;
139 #endif // QGS_GEOMETRY_OVERLAP_CHECK_H
@ Subtract
Subtract the overlap region from the polygon.
virtual bool closeMatch(QgsGeometryCheckError *) const
Check if this error is almost equal to other.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
virtual QString description() const =0
Returns a human readable description for this check.
QString layerName() const
QList< QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override
A list of geometry types for which this check can be performed.
virtual Q_DECL_DEPRECATED QStringList resolutionMethods() const
Returns a list of descriptions for available resolutions for errors.
virtual void collectErrors(const QMap< QString, QgsFeaturePool * > &featurePools, QList< QgsGeometryCheckError * > &errors, QStringList &messages, QgsFeedback *feedback, const LayerFeatureIds &ids=QgsGeometryCheck::LayerFeatureIds()) const =0
The main worker method.
virtual QgsGeometryCheck::Flags flags() const
Flags for this geometry check.
virtual void fixError(const QMap< QString, QgsFeaturePool * > &featurePools, QgsGeometryCheckError *error, int method, const QMap< QString, int > &mergeAttributeIndices, Changes &changes) const
Fixes the error error with the specified method.
virtual QString id() const =0
Returns an id for this check.
virtual bool handleChanges(const QgsGeometryCheck::Changes &changes)
Apply a list of changes.
virtual QString description() const
The error description.
OverlappedFeature(QgsVectorLayer *vl, QgsFeatureId fid)
QgsGeometryCheck::CheckType checkType() const override
Returns the check type.
virtual bool isEqual(QgsGeometryCheckError *other) const
Check if this error is equal to other.
ResolutionMethod
Available resolution methods.
QgsFeatureId featureId() const
CheckType
The type of a check.
Handles storage of information regarding WKB types and their properties.
virtual QIcon icon() const
Returns an icon that should be shown for this kind of error.
bool operator==(const OverlappedFeature &other) const
const OverlappedFeature & overlappedFeature() const
Returns the overlapped feature.
virtual QMap< QString, QgsFeatureIds > involvedFeatures() const
Returns a list of involved features.