QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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;
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;
122 QString
id()
const override;
123 QgsGeometryCheck::Flags
flags()
const override;
127 static QString factoryDescription()
SIP_SKIP;
128 static QString factoryId()
SIP_SKIP;
136 const
double mOverlapThresholdMapUnits;
140 #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.
This class implements a geometry check.
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.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Base configuration for geometry checks.
virtual QString description() const
The error description.
A layer feature combination to uniquely identify and access a feature in a set of layers.
OverlappedFeature(QgsVectorLayer *vl, QgsFeatureId fid)
QgsGeometryCheck::CheckType checkType() const override
Returns the check type.
An error of a QgsGeometryOverlapCheck.
virtual bool isEqual(QgsGeometryCheckError *other) const
Check if this error is equal to other.
ResolutionMethod
Available resolution methods.
QgsFeatureId featureId() const
A class to represent a 2D point.
Checks if geometries overlap.
A geometry is the spatial representation of a feature.
Represents a vector layer which manages a vector based data sets.
CheckType
The type of a check.
Handles storage of information regarding WKB types and their properties.
This represents an error reported by a geometry check.
virtual QIcon icon() const
Returns an icon that should be shown for this kind of error.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
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.