Skip to content
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

Zonal statistics generates wrong numbers under Linux #22603

Closed
qgib opened this issue Apr 8, 2016 · 8 comments
Closed

Zonal statistics generates wrong numbers under Linux #22603

qgib opened this issue Apr 8, 2016 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Apr 8, 2016

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 14639
Affected QGIS version: master
Redmine category:processing/qgis
Assignee: Victor Olaya


Generating zonal stats from processing (the qgis command) results in numbers that are not correctly sorted (see attached).


@qgib
Copy link
Contributor Author

qgib commented Apr 8, 2016

Author Name: Alexander Bruy (@alexbruy)


Can not reproduce with my test data using latest master under Linux. Can you share sample?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Apr 8, 2016

Author Name: Paolo Cavallini (@pcav)


Try the geomorpho example form the training manual.
Thanks.

@qgib
Copy link
Contributor Author

qgib commented Apr 8, 2016

Author Name: Alexander Bruy (@alexbruy)


Checked https://github.com/qgis/QGIS-Documentation/blob/master/source/docs/training_manual/processing/geomorpho.rst and it does not contains any links to sample data. I can use any DEM raster for it, right?

@qgib
Copy link
Contributor Author

qgib commented Apr 8, 2016

@qgib
Copy link
Contributor Author

qgib commented Apr 8, 2016

Author Name: Giovanni Manghi (@gioman)


if by wrong results you mean this

https://lists.osgeo.org/pipermail/qgis-developer/attachments/20160407/902f8dd0/attachment.png

then no, I cannot confirm here (result attached).


  • 9802 was configured as zs.dbf.zip

@qgib
Copy link
Contributor Author

qgib commented Apr 8, 2016

Author Name: Paolo Cavallini (@pcav)


Interesting. Then it might be due to local factors (IT locale?). My command:
"/usr/share/qgis/python/plugins/processing/algs/qgis/ZonalStatistics.py", line 230, in processAlgorithm
attrs.insert(idxMin, float(masked.min()))
Results attached.


  • 9803 was configured as zs2.zip

@qgib
Copy link
Contributor Author

qgib commented Apr 9, 2016

Author Name: Giovanni Manghi (@gioman)


it is just a Linux thing.


  • subject was changed from Zonal statistics generates wrong numbers to Zonal statistics generates wrong numbers under Linux
  • status_id was changed from Feedback to Open
  • operating_system was changed from to Linux
  • version was changed from 2.14.0 to master

@qgib
Copy link
Contributor Author

qgib commented Apr 26, 2016

Author Name: Alexander Bruy (@alexbruy)


Fixed in changeset "77d95b0d655022ab5c9f1927fa0a8ddb492b44df".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant