Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
exception for multipart layers
- Loading branch information
Showing
with
5 additions
and
0 deletions.
-
+5
−0
python/plugins/processing/algs/qgis/RasterSampling.py
|
@@ -137,6 +137,11 @@ def processAlgorithm(self, parameters, context, feedback): |
|
|
|
|
|
for n, i in enumerate(source.getFeatures()): |
|
|
|
|
|
if i.geometry().isMultipart(): |
|
|
raise QgsProcessingException(self.tr('''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: |
|
|