I am working with a raster layer in QGIS, and within this layer, the raster values are as follows: 10, 11, 12, 13, 21, 22, 23, and 30. I need the number of pixel of each value in city borders. I have a vector layer for cities.
Raster layer unique values report is useful but I need a city by city statistics like zonal statistics. I thought that by splitting each value as a different raster than I can use zonal statistics. Do you know an easier method for that? And do you know how can I split the pixels with specific band values as a different raster?