QgsGeometryIsValidCheck class
Checks if geometries are valid using the backend configured in the QGIS settings.
Contents
This does not offer any fixes but makes sure that all geometries are valid.
Base classes
- class QgsSingleGeometryCheck
- Base class for geometry checks for a single geometry without any context of the layer or other layers in the project.
Constructors, destructors, conversion operators
- QgsGeometryIsValidCheck(const QgsGeometryCheckContext* context, const QVariantMap& configuration) explicit
- Creates a new is valid check with the provided context.
Public functions
-
auto checkType() const -> QgsGeometryCheck::
CheckType override - Returns the check type.
-
auto compatibleGeometryTypes() const -> QList<QgsWkbTypes::
GeometryType> override - A list of geometry types for which this check can be performed.
- auto description() const -> QString override
- Returns a human readable description for this check.
- auto id() const -> QString override
- Returns an id for this check.
- auto processGeometry(const QgsGeometry& geometry) const -> QList<QgsSingleGeometryCheckError*> override
- Check the geometry for errors.
- auto resolutionMethods() const -> QStringList override
- Returns a list of descriptions for available resolutions for errors.
Function documentation
QgsGeometryIsValidCheck:: QgsGeometryIsValidCheck(const QgsGeometryCheckContext* context,
const QVariantMap& configuration) explicit
Creates a new is valid check with the provided context.
No options are supported in configuration.
QgsGeometryCheck:: CheckType QgsGeometryIsValidCheck:: checkType() const override
Returns the check type.
QList<QgsWkbTypes:: GeometryType> QgsGeometryIsValidCheck:: compatibleGeometryTypes() const override
A list of geometry types for which this check can be performed.
QString QgsGeometryIsValidCheck:: description() const override
Returns a human readable description for this check.
QString QgsGeometryIsValidCheck:: id() const override
Returns an id for this check.
QList<QgsSingleGeometryCheckError*> QgsGeometryIsValidCheck:: processGeometry(const QgsGeometry& geometry) const override
Check the geometry for errors.
It may make use of configuration options.
Returns a list of QgsSingleGeometryCheckErrors, ownership is transferred to the caller. An empty list is returned for geometries without errors.
QStringList QgsGeometryIsValidCheck:: resolutionMethods() const override
Returns a list of descriptions for available resolutions for errors.
The index will be passed as method to