Skip to content

Commit

Permalink
[processing] Throw exception when combining clip geometry fails in cl…
Browse files Browse the repository at this point in the history
…ip alg
  • Loading branch information
nirvn committed Apr 3, 2018
1 parent b18aaae commit a93daf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/analysis/processing/qgsalgorithmclip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ QVariantMap QgsClipAlgorithm::processAlgorithm( const QVariantMap &parameters, Q
if ( clipGeoms.length() > 1 )
{
combinedClipGeom = QgsGeometry::unaryUnion( clipGeoms );
if ( combinedClipGeom.isEmpty() )
{
throw QgsProcessingException( QObject::tr( "Could not create the combined clip geometry: %1" ).arg( combinedClipGeom.lastError() ) );
}
singleClipFeature = false;
}
else
Expand Down

0 comments on commit a93daf1

Please sign in to comment.