Skip to content

Commit

Permalink
Move to unified single geometry check
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent cde294e commit 5d7c33e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -100,3 +100,8 @@ bool QgsGeometryCheckErrorSingle::handleChanges( const QgsGeometryCheck::Changes

return mError->handleChanges( changes.value( layerId() ).value( featureId() ) );
}

void QgsSingleGeometryCheck::collectErrors( QList<QgsGeometryCheckError *> &errors, QStringList &messages, QAtomicInt *progressCounter, const QMap<QString, QgsFeatureIds> &ids ) const
{

}
3 changes: 2 additions & 1 deletion src/app/qgsgeometryvalidationservice.cpp
Expand Up @@ -87,6 +87,7 @@ void QgsGeometryValidationService::processFeature( QgsVectorLayer *layer, QgsFea
emit geometryCheckStarted( layer, fid );

QgsFeature feature = layer->getFeature( fid );
const auto errors = mIsValidGeometryCheck->collectErrors( feature );
// TODO: this is a bit hardcore
const auto errors = mIsValidGeometryCheck->processGeometry( QgsGeometryCheckerUtils::LayerFeature( nullptr, feature ) );
emit geometryCheckCompleted( layer, fid, errors );
}

0 comments on commit 5d7c33e

Please sign in to comment.