QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
22 QList<QgsSingleGeometryCheckError *> errors;
78 static QStringList methods = QStringList()
79 << tr(
"Convert to single part feature" )
80 << tr(
"Delete feature" )
void setFixFailed(const QString &reason)
Set the error status to failed and specify the reason for failure.
Descripts a change to fix a geometry.
static QgsAbstractGeometry * getGeomPart(QgsAbstractGeometry *geom, int partIdx)
@ ChangeFeature
This change happens on feature level.
void setObsolete()
Set the error status to obsolete.
QgsFeatureId featureId() const
The id of the feature on which this error has been detected.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
@ ChangeChanged
Something has been updated.
Type
The WKB type describes the number of dimensions a geometry has.
virtual int partCount() const =0
Returns count of parts contained in the geometry.
An error from a QgsSingleGeometryCheck.
bool getFeature(QgsFeatureId id, QgsFeature &feature)
Retrieves the feature with the specified id into feature.
@ ChangeRemoved
Something has been removed.
QgsWkbTypes::Type wkbType() const SIP_HOLDGIL
Returns the WKB type of the geometry.
virtual void deleteFeature(QgsFeatureId fid)=0
Removes a feature from this pool.
void setGeometry(const QgsGeometry &geometry)
Set the feature's geometry.
virtual void updateFeature(QgsFeature &feature)=0
Updates a feature in this pool.
void setFixed(int method)
Set the status to fixed and specify the method that has been used to fix the error.
const QgsAbstractGeometry * constGet() const SIP_HOLDGIL
Returns a non-modifiable (const) reference to the underlying abstract geometry primitive.
Abstract base class for all geometries.
A geometry is the spatial representation of a feature.
QList< QgsSingleGeometryCheckError * > processGeometry(const QgsGeometry &geometry) const override
Check the geometry for errors.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
const QString & layerId() const
The id of the layer on which this error has been detected.
Q_DECL_DEPRECATED QStringList resolutionMethods() const override
Returns a list of descriptions for available resolutions for errors.
static bool isMultiType(Type type) SIP_HOLDGIL
Returns true if the WKB type is a multi type.
This represents an error reported by a geometry check.
A feature pool is based on a vector layer and caches features.
void fixError(const QMap< QString, QgsFeaturePool * > &featurePools, QgsGeometryCheckError *error, int method, const QMap< QString, int > &mergeAttributeIndices, Changes &changes) const override
Fixes the error error with the specified method.