I am trying to calculate two zonal statistics: count and variety.
My raster is a produce of r.raster.area with 4399 groups of pixels within a matrix of no-data values (which are coded as 65535).
My vector layer holds seven hand created polygons, which I have checked for validity, both with the built-in Validity Check algorithm and visually.
As I need Variety, the only tool I can use is the QGIS Zonal statistics tool in the Processing Toolbox. When I run the analysis, I get correct values for Count, but Variety is always 0 (which is impossible, as all the polygons hold many different values).
Could this be a problem with the high number of unique values (4399)?
Variety
measure, will you also select eitherMinority
orMajority
, or both of them along withVariety
?