Calculating raster class areas inside polygon feature dataset

7871
5
11-07-2012 12:19 AM
DarioPerkovic
New Contributor
Hi!

I have raster dataset, grid with cell size 1000 x 1000 m, total area of 54 km2. Raster is reclassified into 6 classes. Also, I have one polygon vector layer (and only one feature) as research area. How can I get areas in meters (or cells) calculated as double or float values of each raster class inside my polygon? I tried with Zonal Toolset (Spatial Analyst) and Thematic Raster Summary Tool (Hawth's Analysis Tools for ArcGIS) but with no luck. I would like to have table like Hawth's Tool has, with six new fields (for six classes) filled with values of exact area in km2 inside polygon. Unfortunately, this tool only counts cells of each class inside polygon and fills attribute table with integer numbers.

Thanks!

Dario
0 Kudos
5 Replies
MarcinGasior
Occasional Contributor III
Hi!
Thematic Raster Summary Tool (Hawth's Analysis Tools for ArcGIS) ... this tool only counts cells of each class inside polygon and fills attribute table with integer numbers.


Your raster cell area is 1 km2, so the cell count is already an area in square kilometers.
You will not get better precision that 1 km2 as raster cells are not clipped like polygons. Zonal tools take only whole cell and assign it to one of adjoining zones.
0 Kudos
DarioPerkovic
New Contributor
Your raster cell area is 1 km2, so the cell count is already an area in square kilometers.
You will not get better precision that 1 km2 as raster cells are not clipped like polygons. Zonal tools take only whole cell and assign it to one of adjoining zones.


Thank you for your answer. But why is it so? Why is  not possible to calculate accurate areas inside. Is it possible maybe to convert raster to polygon and then with something else calculate intersection of two polygons with decimals, I mean real km2 values?
0 Kudos
MarcinGasior
Occasional Contributor III
Is it possible maybe to convert raster to polygon and then with something else calculate intersection of two polygons with decimals, I mean real km2 values?

Yes, it's possible, but it won't give you more accurate result.
Your result will be more precise but still will be as accurate as your least accurate data set.
In other words, your result with decimals won't be closer to reality than result without decimals.
0 Kudos
DarioPerkovic
New Contributor
Yes, it's possible, but it won't give you more accurate result.
Your result will be more precise but still will be as accurate as your least accurate data set.
In other words, your result with decimals won't be closer to reality than result without decimals.


Thank your very much for your help. I'll try again with Zonal Toolset and maybe GME (http://www.spatialecology.com/gme/), successor of Hawth's Analysis Tools. If I find out something new, I'll let you know.
0 Kudos
DarioPerkovic
New Contributor
Thank your very much for your help. I'll try again with Zonal Toolset and maybe GME (http://www.spatialecology.com/gme/), successor of Hawth's Analysis Tools. If I find out something new, I'll let you know.


So as you implied in one your post, Raster resampling helped. Cell size is now changed from 1 km to 1 m and after that new raster has been clipped by feature dataset with Extract by Mask tool (Spatial Analyst Tools). Field in attribute table COUNT is showing much accurate values than before.
0 Kudos