I have a shapefile with 31 million polygons and I want to extract statistics from a raster for each polygon. Whenever I use zonal statistics I get:
ERROR 999998: Unexpected Error. Failed to execute (Zonal Statistics)
The problem with this error is that there is no clear answer on what is going wrong.
So far I tried breaking the shapefile into smaller pieces and run zonal statistics, changed the processing from background to foreground and changed my working directory to C:/ but I keep getting the same error.
I would like to know what else can I try?