Bug report #17161

Processing: zonal stats python error

Added by Giovanni Manghi over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:High
Assignee:Victor Olaya
Category:Processing/QGIS
Affected QGIS version:2.18.12 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:25060

Description

Tested on Linux and Windows (raster layer attached) on 2.18.13

2017-09-19T19:29:30    2    Uncaught error while executing algorithm
            Traceback (most recent call last):
              File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 203, in execute
                self.processAlgorithm(progress)
              File "/usr/share/qgis/python/plugins/processing/algs/qgis/ZonalStatistics.py", line 232, in processAlgorithm
                numpy.isnan(srcArray))))
            ValueError: setting an array element with a sequence.

This is a regression as the tools worked fine in previous releases.

Note: if sample polygon(s) are smaller than a pixel size then the tool runs but the output is empty, see also: #17159

On master seems ok, but still #17159

mdt_clipped.tif (786 KB) Giovanni Manghi, 2017-09-19 08:38 PM

Associated revisions

Revision f14502e4
Added by Alexander Bruy over 6 years ago

[processing] update mask computation code (fix #17161)

History

#1 Updated by Jürgen Fischer over 6 years ago

  • Description updated (diff)

#2 Updated by Jürgen Fischer over 6 years ago

  • Description updated (diff)

#3 Updated by Alexander Bruy over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF