I have a big shapefile ( more than 500.000 polygons) and a raster file. I want to calculate the majority pixel per polygon, which I can do with zonal statistics. However, I also need the percentage of this majority value per polygon. There is a post that suggests using the zonal histogram in batch mode, which I do not how to do use. Could somebody explain in more detail this solution or a different one?
This is the link for the post: Counting percentage of raster cell inside polygon using QGIS