Bug report #4195

Zonal statistics plugin: wrong "sum" and "mean" when the raster is just partially overlapped to a polygon

Added by Giovanni Manghi over 11 years ago. Updated over 11 years ago.

Assignee:Marco Hugentobler
Category:C++ Plugins
Affected QGIS version: Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data: Copied to github as #:14169


Take a raster and then a polygon grid that overlaps it. If the grid matches perfectly the raster extent than no problems. If part of the grid is out of the extent of the raster then the calculations for the grid polygons that are not completely overlapped to the raster, are all equal to "0".

I'll attach two sample files.

grid_sel37_shp.zip (2.97 KB) Giovanni Manghi, 2011-08-21 06:00 AM

dem_clipped.tif (498 KB) Giovanni Manghi, 2011-08-21 06:00 AM


#1 Updated by Giovanni Manghi over 11 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

after thinking about it (thanks Paolo) I believe that the actual behavior is the right one.

Also available in: Atom PDF