Skip to content

Commit

Permalink
Merge pull request #9297 from m-kuhn/geometry-validation-auto-resolut…
Browse files Browse the repository at this point in the history
…ion-experimental

[geometry validation] Tag automatic resolution of problems as experimental
  • Loading branch information
m-kuhn committed Mar 18, 2019
2 parents 4e9c4b5 + 24b8dcc commit 0c265d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions resources/qgis_global_settings.ini
Expand Up @@ -87,3 +87,7 @@ maxEntriesRelationWidget=100
# A comma separated list of geometry validations to enable by default for newly added layers
# Available checks: QgsIsValidCheck,QgsGeometryGapCheck,QgsGeometryOverlapCheck,QgsGeometryMissingVertexCheck
default_checks=

# Enable problem resolution for geometry errors
# This feature is experimental and has known issues.
enable_problem_resolution=false
4 changes: 3 additions & 1 deletion src/app/qgsgeometryvalidationdock.cpp
Expand Up @@ -70,8 +70,10 @@ QgsGeometryValidationDock::QgsGeometryValidationDock( const QString &title, QgsM
mErrorLocationRubberband->setColor( QColor( 50, 255, 50, 255 ) );

mProblemDetailWidget->setVisible( false );
}

// Problem resolution is unstable and therefore disabled by default
mResolutionWidget->setVisible( QgsSettings().value( QStringLiteral( "geometry_validation/enable_problem_resolution" ) ) == QLatin1String( "true" ) );
}

QgsGeometryValidationModel *QgsGeometryValidationDock::geometryValidationModel() const
{
Expand Down

0 comments on commit 0c265d7

Please sign in to comment.