I have a shapefile
and a raster
. They superimpose to a greater degree except at edges where raster pixels do not extend up to layer boundary (see image if it was not clear). The green line is from the shapefile. The red color is raster. The space between them is a NO DATA.
It must probably because of Larger pixel sizes of rasters that caused problem when I clipped the raster. The problem arises when I use zonal statistics
. This tool calculated mean considering the NO DATA field values as well.
Is there a way to tell this plugin (or may be another better plugin) to ignore No Data from the raster while calculating mean?