Bug report #17161
Processing: zonal stats python error
| Status: | Closed | ||
|---|---|---|---|
| Priority: | High | ||
| Assignee: | |||
| 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
Associated revisions
[processing] update mask computation code (fix #17161)
History
#1
Updated by Jürgen Fischer about 8 years ago
- Description updated (diff)
#2
Updated by Jürgen Fischer about 8 years ago
- Description updated (diff)
#3
Updated by Alexander Bruy about 8 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|f14502e441173dbb604178421549bfe5a0bb59ae.