-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Processing QGIS Zonal Stats broken on Windows #22811
Comments
Author Name: Alexander Bruy (@alexbruy) Tested with geomorpho.qgs project (more_backends.qgs seems does not have any raster layers in it) under Windows using latest qgis-dev package — no errors, statistics calculated correctly. I got same results as under Linux. |
Author Name: Alexander Bruy (@alexbruy) Issue with 2.8.9 confirmed, I also got
|
Author Name: Giovanni Manghi (@gioman) Alexander Bruy wrote:
weird you don't get errors in 2.14 or master, I have clean testing environments on windows and I see the same on both OSes. |
Author Name: Alexander Bruy (@alexbruy) Fix for 2.8.x commited. |
Author Name: Giovanni Manghi (@gioman) Alexander Bruy wrote:
still can't replicate the other error on 2.14/master? |
Author Name: Alexander Bruy (@alexbruy) Yes, no error on master. |
Author Name: Giovanni Manghi (@gioman) Alexander Bruy wrote:
tested Windows right (is only Windows issue)? |
Author Name: Alexander Bruy (@alexbruy) Yes, I tested on Windows and can't reproduce this |
Author Name: Alexander Bruy (@alexbruy) Seems works fine on all systems now
|
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 14858
Affected QGIS version: master
Redmine category:processing/qgis
Assignee: Victor Olaya
Seems only Windows is affected (the last working release seems to be 2.6).
Try this project
https://github.com/qgis/QGIS-Documentation/tree/master/source/docs/training_manual/exercise_data/processing/more_backends
You'll get
Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
self.processAlgorithm(progress)
File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\algs\qgis\ZonalStatistics.py", line 249, in processAlgorithm
attrs.insert(idxMode, float(mode(masked, axis=None)[0][0]))
File "C:\OSGeo4W\apps\Python27\lib\site-packages
umpy\ma\core.py", line 2941, in getitem
dout = ndarray.getitem(_data, indx)
IndexError: 0-d arrays can't be indexed
on 2.14 and master
and
Traceback (most recent call last):
Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis-ltr/./python/plugins\processing\core\GeoAlgorithm.py", line 232, in execute
self.processAlgorithm(progress)
File "C:/OSGeo4W/apps/qgis-ltr/./python/plugins\processing\algs\qgis\ZonalStatistics.py", line 105, in processAlgorithm
(startColumn, startRow) = mapToPixel(xMin, yMax, geoTransform)
File "C:/OSGeo4W/apps/qgis-ltr/./python/plugins\processing\tools
aster.py", line 68, in mapToPixel
gdal.InvGeoTransform(geoTransform)[1], mX, mY)
TypeError: not a sequence
on 2.8
The text was updated successfully, but these errors were encountered: