I have a raster file (elevation) and a shape file (neighborhood polygons). I would like to sample the raster for each polygon and assign the average raster value to its' respective polygon. Ideally I would add a new column with the average elevation for each row in the shape file.
If you have access to Spatial Analyst, one possibility is to use Zonal Statistics, with the statistics_type (optional) of Mean:
ArcGIS Help (10.2, 10.2.1, and 10.2.2) Zonal Statistics
Chris Donohue, GISP
Hi Amy,
I'm sorry, I don't recall and unfortunately I can't seem to find my notes on that project. I was likely helping a student and they ended up doing something else. If you find an answer though, please post it here!
Amy
Did you find a method that works for non-integer raster values? I'm wanting to do the same thing.
Thanks,
Is there any way to do this when the raster data isn't integer type? I have a kriged raster, so the values are not integers.
I tried again using he correct zone field and it worked.
THANKS VERY MUCH!
Davis
Thanks Chris,
I tried this and created a raster with the shape of the subdivisions that
assigned a single average value for the entire raster, not the average for
each separate polygon. Ideally, I would like to extract the average value
for each polygon and add it as a field in the subdivision shapefile. Any
thoughts?
Davis Tolman
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.