28 return factoryCompatibleGeometryTypes();
33 QVector<QgsGeometry::Error> errors;
36 if (
QgsSettings().value( QStringLiteral(
"qgis/digitizing/validate_geometries" ), 1 ).toInt() == 2 )
43 errors.append( error );
49 QList<QgsSingleGeometryCheckError *> result;
50 for (
const auto &error : qgis::as_const( errors ) )
66 QList<QgsWkbTypes::GeometryType> QgsGeometryIsValidCheck::factoryCompatibleGeometryTypes()
73 return factoryCompatibleGeometryTypes().contains( layer->geometryType() );
76 QString QgsGeometryIsValidCheck::factoryDescription()
78 return tr(
"Is Valid" );
81 QString QgsGeometryIsValidCheck::factoryId()
83 return QStringLiteral(
"QgsIsValidCheck" );
86 QgsGeometryCheck::Flags QgsGeometryIsValidCheck::factoryFlags()
99 , mDescription( errorDescription )