So now I'm thinking of just converting my Kernel Density surface (the file I want to do Zonal Stats for) to a point file and just using Summary Statistics after an intersect of polygons to points. I'm just exhausted using Zonal Stats for 2 reasons, it keeps crashing using iterators AND 13-character limits for file names (I had to reprocess work to create unique IDs that took a whole day b/c my unique IDs were 15 characters long).
Do you see any reason not to do this vector version of Zonal Stats? And how stable is your tool that you don't feel comfortable putting up on the forum? I may not be of help testing b/c I'm not much of a python programmer (I'm self taught modelbuilder and know very little python and even less VBA).
Danny
Danny
Take a look at the attached tool. It will allow you to do zonal statistics as table on overlapping polygons. you can add this tool directly to ArcToolbox.
Jamie
How do you get this installed into ArcMap10??
I was working on separating a feature class with overlapping polygons into a minimal set of feature classes with non-overlapping polygons when I was asked to work on a solution for the Zonal Statistics problem described here. I came up with a different solution, probably because I was working on this from a different angle. The routine I wrote is recursive and uses spatial join.
I'm only attaching the python code. Feel free to use it or modify it for your needs.
Sue
# Note the select string will be different depending on the workspace desc = arcpy.Describe(env.workspace) if desc.extension == 'mdb': selStr = "[" + fCount + "] = " else: selStr = "\"" + fCount + "\" = "
# Note the select string will be different depending on the workspace dfCount = arcpy.AddFieldDelimiters(env.workspace,fCount) selStr = dfCount + " = "