[GIS] QGIS equivalent to the ArcMap Zonal Statistics as Table

histogramqgiszonal statistics

Is there a QGIS equivalent to the Arc: Spacial Analyst: Zonal: Zonal Statistics as Table?

Given the USDA Cropland Data Layer, Would like to count the pixels by type within a county.

Best Answer

Unfortunately Zonal Statistics will only give a summary of all cells within each polygon. To extract values for each land cover type (closer to Arc's Zonal Statistics as Table) you can create an indicator grid for each land cover type as shown in this answer

Edit

As of QGIS 3.2 there is a Zonal Histogram tool which should perform this automatically.