Skip to content
Permalink
Browse files

[processing] Show error when dissolve fails

Partial fix for #20591 - Dissolve tool failing to produce outputs

There is still the GEOS issue to be cheked
  • Loading branch information
elpaso committed Nov 22, 2018
1 parent b6d9e0b commit 1c390748c9f577e45fe8b7b400f7cded1cac51fb
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/analysis/processing/qgsalgorithmdissolve.cpp
@@ -212,9 +212,14 @@ QgsDissolveAlgorithm *QgsDissolveAlgorithm::createInstance() const

QVariantMap QgsDissolveAlgorithm::processAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
{
return processCollection( parameters, context, feedback, []( const QVector< QgsGeometry > &parts )->QgsGeometry
return processCollection( parameters, context, feedback, [ & ]( const QVector< QgsGeometry > &parts )->QgsGeometry
{
return QgsGeometry::unaryUnion( parts );
QgsGeometry result( QgsGeometry::unaryUnion( parts ) );
if ( ! result.lastError().isEmpty() )
{
feedback->reportError( result.lastError(), true );
}
return result;
}, 10000 );
}

0 comments on commit 1c39074

Please sign in to comment.
You can’t perform that action at this time.