Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 1c39074
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/analysis/processing/qgsalgorithmdissolve.cpp
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 1c39074

Please sign in to comment.