Select to view content in your preferred language

How do I assign average raster values to polygons within a shapefile

22346
4
Jump to solution
10-06-2016 02:33 PM
DavisTolman
Occasional Contributor

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.

1 Solution

Accepted Solutions
ChrisDonohue__GISP
MVP Alum

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

View solution in original post

0 Kudos
4 Replies
ChrisDonohue__GISP
MVP Alum

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

0 Kudos
DavisTolman
Occasional Contributor

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

0 Kudos
DavisTolman
Occasional Contributor

I tried again using he correct zone field and it worked.

THANKS VERY MUCH!

Davis

0 Kudos
AmyNewsam
Regular Contributor

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.

0 Kudos