Closed qgib closed 5 years ago
Author Name: Giovanni Manghi (@gioman)
This is confirmed to affect the core c++ plugin, while the same tool in the Processing toolbox seems ok.
Author Name: Alexander Bruy (@alexbruy)
In fact almost all polygons in the attached dataset have raster within their boundaries, but this is NODATA value. Even plogon in the middle of the raster has wrong statistics.
And I can not reproduce this bug with clipped part of the attached raster/vector layers.
Author Name: Giovanni Manghi (@gioman)
Author Name: Giovanni Manghi (@gioman)
Author Name: Giovanni Manghi (@gioman)
Results are correct on 2.18.4 on both Linux and Windows.
Author Name: Tobias Klinge (Tobias Klinge) Original Redmine Issue: 13081 Affected QGIS version: master Redmine category:analysis_library
I believe the title says it all. Working with the attached sample data, Zonal Statistics ended up calculating means, medians etc. for polygons (no apparent geometry issues) that have no valid raster cells underneath. Note, however, that this does not happen all the time since some returns were indeed NULL (as they should be). One indicator for faulty results is clearly that count returns floats instead of integers. Except for this, the plugin worked fine - thanks again for expanding its options. Hopefully, this can be resolved quickly. Best regards tjk