Skip to content
Permalink
Browse files

[processing] Throw exception when combining clip geometry fails in cl…

…ip alg
  • Loading branch information
nirvn committed Apr 3, 2018
1 parent b18aaae commit a93daf143752ba14bd052ec0b03d2b540e1de96d
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/analysis/processing/qgsalgorithmclip.cpp
@@ -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

0 comments on commit a93daf1

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