21 const QString &layerId,
26 const QVariant &value,
ValueType valueType )
29 , mFeatureId( featureId )
30 , mGeometry( geometry )
31 , mErrorLocation( errorLocation )
34 , mValueType( valueType )
35 , mStatus( StatusPending )
43 const QVariant &
value,
54 if ( vidx.
part != -1 )
75 QgsDebugMsg( QStringLiteral(
"Can not show error in current map coordinate reference system" ) );
146 else if (
mVidx.
part > change.vidx.part )
159 else if (
mVidx.
ring > change.vidx.ring )
The error is obsolete because of other modifications.
This change happens on part level.
A rectangle specified with double values.
The error is detected and pending to be handled.
QString mResolutionMessage
virtual void update(const QgsGeometryCheckError *other)
Update this error with the information from other.
OperationResult transform(const QgsCoordinateTransform &ct, QgsCoordinateTransform::TransformDirection direction=QgsCoordinateTransform::ForwardTransform, bool transformZ=false) SIP_THROW(QgsCsException)
Transforms this geometry as described by the coordinate transform ct.
static QgsAbstractGeometry * getGeomPart(QgsAbstractGeometry *geom, int partIdx)
Something has been added.
const QgsCoordinateReferenceSystem mapCrs
The coordinate system in which calculations should be done.
A class to represent a 2D point.
virtual bool closeMatch(QgsGeometryCheckError *) const
Check if this error is almost equal to other.
A geometry is the spatial representation of a feature.
ValueType
Describes the type of an error value.
void setFixFailed(const QString &reason)
Set the error status to failed and specify the reason for failure.
Something has been removed.
const QgsGeometryCheck * check() const
The geometry check that created this error.
This change happens on ring level.
QPointer< QgsVectorLayer > layer() const
The layer.
Utility class for identifying a unique vertex within a geometry.
virtual CheckType checkType() const =0
Returns the check type.
A layer feature combination to uniquely identify and access a feature in a set of layers...
const QgsGeometryCheck * mCheck
This class implements a geometry check.
const QString & layerId() const
The id of the layer on which this error has been detected.
const QgsAbstractGeometry * constGet() const
Returns a non-modifiable (const) reference to the underlying abstract geometry primitive.
QgsGeometry geometry() const
The geometry of the error in map units.
LayerFeatureIds()=default
Status status() const
The status of the error.
bool partEqual(QgsVertexId o) const
bool ringEqual(QgsVertexId o) const
bool useMapCrs() const
Returns if the geometry is reprojected to the map CRS or not.
QMap< QString, QMap< QgsFeatureId, QList< QgsGeometryCheck::Change > > > Changes
A collection of changes.
virtual QgsRectangle affectedAreaBBox() const
The bounding box of the affected area of the error.
Descripts a change to fix a geometry.
void setFixed(int method)
Set the status to fixed and specify the method that has been used to fix the error.
QgsRectangle boundingBox() const
Returns the bounding box of the geometry.
virtual bool handleChanges(const QgsGeometryCheck::Changes &changes)
Apply a list of changes.
A fix has been tried on the error but failed.
virtual QStringList resolutionMethods() const =0
Returns a list of descriptions for available resolutions for errors.
const QgsCoordinateTransformContext transformContext
The coordinate transform context with which transformations will be done.
QgsFeatureId featureId() const
The id of the feature on which this error has been detected.
Custom exception class for Coordinate Reference System related exceptions.
const QgsGeometryCheckContext * context() const
Returns the context.
This represents an error reported by a geometry check.
This change happens on node level.
QgsPointXY mErrorLocation
QVariant value() const
An additional value for the error.
ValueType valueType() const
The type of the value.
Represents a vector layer which manages a vector based data sets.
Something has been updated.
const QgsVertexId & vidx() const
The id of the affected vertex.
QgsGeometryCheckError(const QgsGeometryCheck *check, const QgsGeometryCheckerUtils::LayerFeature &layerFeature, const QgsPointXY &errorLocation, QgsVertexId vidx=QgsVertexId(), const QVariant &value=QVariant(), ValueType valueType=ValueOther)
Create a new geometry check error with the parent check and for the layerFeature pair at the errorLoc...
This change happens on feature level.
virtual bool isEqual(QgsGeometryCheckError *other) const
Check if this error is equal to other.
QgsCoordinateReferenceSystem crs
The check controls individual nodes.
const QgsGeometry & geometry() const
Returns the geometry of this feature.