Skip to content
Permalink
Browse files

Move to unified single geometry check

  • Loading branch information
m-kuhn committed Sep 17, 2018
1 parent cde294e commit 5d7c33eb1f5387e3c07b767f7820172cccd1a2e4
@@ -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
{

}
@@ -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.
You can’t perform that action at this time.