Bug report #9349
QGis Zonal Statistics Plugin NoData included in Calculations
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17951|
I have an ESRI raster file (w001001.adf) with a NoData value of -32768 and otherwise non-negative data. I have a vector value of polygons. When I use the built-in Zonal Statistics Plugin, many of the returned results are negative. Some of the negative values are -32768, which i understand to mean that there was no raster data in the particular polygon. However, many of the negative values are not equal to -32768, which implies that the NoData value of -32768 is counted with the non-negative data values when Zonal Statistics is used. Attached is both the raster and vector data. Note in the vector data attributes I have already applied Zonal Statistics and saved new columns as prc7count, prc7sum and prc7mean.