I need to calculate Variety of pixels for every polygon in a shapefile but the analysis returns zero.
Polygons are much bigger than a raster cell which is 10 m. Polygons are completely covered with raster cells. Raster cells have 8 categories - from 1 to 8 (reclassified aspect). No Data from original aspect raster were converted to 0 (at least this was set in a reclassification dialog). Polygons, raster and project have the same coordinate system (EPSG 5514) and are stored on a disk, no temp layers. Polygons have valid geometry with no errors. Raster is a geoTIFF.
I have searched all the questions with "Zonal stats returns zero or empty values", tried the solutions in there but with no luck. I have no idea what´s wrong.
The analysis doesn´t work for me in QGIS 3.10.4 LTR, the log says nothing wrong, it just doesn´t do what it should. When I tried the same in QGIS 2.18 the analysis fails with a KeyError: