Skip to content
Browse files
exception for multipart layers
  • Loading branch information
ghtmtt committed Jul 12, 2018
1 parent a4c0c2e commit 0835b20d577490b0876764f8a01539b8001841a3
Showing with 5 additions and 0 deletions.
  1. +5 −0 python/plugins/processing/algs/qgis/
@@ -137,6 +137,11 @@ def processAlgorithm(self, parameters, context, feedback):

for n, i in enumerate(source.getFeatures()):

if i.geometry().isMultipart():
raise QgsProcessingException('''Impossible to sample data
of a Multipart layer. Please use the Multipart to single part
algoithm to transform the layer.'''))

attrs = i.attributes()

if sampled_rasters.bandCount() > 1:

0 comments on commit 0835b20

Please sign in to comment.