Skip to content

Commit

Permalink
Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 5e27163 commit 1b0bd51
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
29 changes: 29 additions & 0 deletions python/core/auto_generated/qgsgeometryoptions.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@




class QgsGeometryOptions
{
%Docstring
Expand Down Expand Up @@ -72,6 +73,34 @@ Determines if at least one fix is enabled.
%Docstring
Apply any fixes configured on this class to ``geometry``.

.. versionadded:: 3.4
%End

QStringList geometryChecks() const;
%Docstring
A list of activated geometry checks.

.. versionadded:: 3.4
%End

void setGeometryChecks( const QStringList &geometryChecks );
%Docstring
A list of activated geometry checks.

.. versionadded:: 3.4
%End

QVariantMap checkConfiguration( const QString &checkId ) const;
%Docstring
Access the configuration for the check ``checkId``.

.. versionadded:: 3.4
%End

void setCheckConfiguration( const QString &checkId, const QVariantMap &checkConfiguration );
%Docstring
Set the configuration for the check ``checkId``.

.. versionadded:: 3.4
%End

Expand Down
18 changes: 18 additions & 0 deletions src/analysis/vector/geometry_checker/qgsgeometrycheckfactory.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/***************************************************************************
qgsgeometrycheckfactory.cpp
--------------------------------------
Date : September 2018
Copyright : (C) 2018 Matthias Kuhn
Email : matthias@opengis.ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#include "qgsgeometrycheckfactory.h"

#include "qgis.h"
1 change: 1 addition & 0 deletions src/app/qgsgeometryvalidationmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ QVariant QgsGeometryValidationModel::data( const QModelIndex &index, int role )
#endif
}


case Qt::DecorationRole:
{
if ( mGeometryValidationService->validationActive( mCurrentLayer, featureItem.fid ) )
Expand Down
1 change: 1 addition & 0 deletions src/app/qgsgeometryvalidationservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ email : matthias@opengis.ch
QgsGeometryValidationService::QgsGeometryValidationService( QgsProject *project )
{
connect( project, &QgsProject::layersAdded, this, &QgsGeometryValidationService::onLayersAdded );
mIsValidGeometryCheck = new QgsIsValidGeometryCheck();
}

QgsGeometryValidationService::~QgsGeometryValidationService()
Expand Down

0 comments on commit 1b0bd51

Please sign in to comment.