Hi Forum. I have been trying to use zonal statistics as table to get majority values for each polygon in a segmentation shapefile (45K polygons processed in IDRISI and exported to shapefile) from a pixel by pixel classified image. I can do that perfectly in Arcgis 9.3 with no problems at all, but in 10.1 it has been impossible to do it right, the resulting table has just 14K records with data, or in other words it´s processing just 1/4 of all the polygons with no clue on why (no patterns on polygon size, shape or values in the classified image). I have already asked this question and some suggested that I made sure that the projections match (did that, same results), to get service pack 1 (also did that, same results). I have now tried to convert first the shapefile to raster and then make the zonal analysis and to my surprise this conversion yielded just 14K records in the raster. It then appears that the problem is in this vector to raster conversion that I understand is made anyway when you use zonal stats as table. Can someone help please?
Generally there are two main reasons why the conversion to raster results in fewer records than the input.
1. There is overlap within the polygons. When converted the underlying pixel can only be one value, not both. So one is discarded.
2. You have chosen a cell size (or accepted the default) that isn't appropriate given the size of your smaller polygons. If the areas of single features are similar to or smaller than the area of single cells in the value raster, in the feature-to-raster conversion some of these zones may not be represented.
Interesting... Did you try a smaller cellsize just to test to see if you get more records? Did you try Steve's suggestion to check and repair geometry? You could also try converting the feature class into another feature class before attempting to convert to raster. The issue isn't with the zonal tool at this point. It's either some bad data or something with the conversion tool. However, the conversion to raster has pretty much always worked for me in 10.1. Do you have sp1 installed? If not, try installing it and test again.