Hi all. Thanks for any response in advance.
My question is this: I have a raster image that details land use data for a state (Ohio). I also have a shapefile of all Ohio counties. I want to be able to export a table that has the raster values for each county listed (IE I want to know how much land is covered by forest in Defiance County, Ohio). Basically, I need to query every county in the state and want to know if their is a way to do this quickly. I've attached a ZIP file with 2 pictures and a layer file that contains the raster data and shapefile I am working with.
I would consider myself an advanced-beginner with ArcGIS, so forgive any naivety on my part.
Thanks for any and all help!
#1
Posted 18 February 2013 - 03:25 PM
#2
Posted 19 February 2013 - 01:36 AM
Assuming you have ArcInfo license level + spatial analyst:
- Make sure that each county has a numerical id
- Rasterize the county layer, to a new raster, with the same extent and cellsize as the land use data, and with the numerical id as grid value
- Then run the Combine function, combining land use and land use
- export the .vat table for the combined layer to e.g. dbf or csv that you can use in a spreadsheet program
#3
Posted 19 February 2013 - 06:41 AM
I think you could also do what you want with the 'zonal statistics as table' tool which comes under 'zonal' in the spatial analyst toolbox. I think it will give you a similar output to the method Frax suggested but should work with a standard ArcMap license (plus spatial analyst) rather than needing an ArcInfo license.
#4
Posted 19 February 2013 - 10:12 AM
Thanks for the response guys! I will try it out later this afternoon and get back to you. Also, yes I am working with ArcGIS 10 and have access to the spatial analyst tool.
AndrewM, I tried the "zonal statistics as table" before and it just kept hitting an error and closed. Not sure why...
#5
Posted 19 February 2013 - 01:55 PM
frax,
After setting the extent and cell size the same as my landuse raster, how would I go about setting the grid value as numerical id for counties?
The numerical ID that is included in the .shp file is the CNTY_FIPS, is the one that I am using. Is this correct?
Also, the zonal histogram/table/tabulate area stuff just does not work at all. Every time I try to use them, ArcMap crashes.
Thank you very much for your help guys!
#6
Posted 20 February 2013 - 02:23 AM
rob, run the polygon to raster tool, and a parameter to the tool is what attribute to use for grid value.
#7
Posted 20 February 2013 - 02:24 AM
Oh, by the way - if you get crashes, that is an indication that the data is dirty...
#8
Posted 21 February 2013 - 03:17 PM
Thanks for the reply frax.
The data that I am using is from the USDA so I doubt their are things wrong with it but you never know I guess. The combine tool is just not the tool to use. I have tried many many variations with this tool all to no avail. Here is a link to what the people on ESRI's forum are saying, but still not working:
http://forums.arcgis...4984#post274984
If you read my replies in the above link, you will see that I got the histogram tool to work and that I got some kind of table out of it, with numbers associated with the counties, but I do not know what they mean.
Again, forgive my innocent views, but I just don't understand why you can't "easily" define boundaries for raster analysis. You think this would be a simple task because I would imagine this is a common occurrence.
#9
Posted 25 February 2013 - 05:40 AM
Again, forgive my innocent views, but I just don't understand why you can't "easily" define boundaries for raster analysis. You think this would be a simple task because I would imagine this is a common occurrence.
Hi Rob,
I think this is because the zonal statistics tool does the job you want, but I'm not sure why it would be crashing with your data. Could you post the error message here so we can see if it sheds any light on the situation? Do you get the same error if you just use the zonal statistics tool (not as a table)? If I remember rightly that will add the statistics to the shapefile attributes and you could then open the .dbf portion of the shapefile in excel and get essentially the same result.
Sorry not to be of more help,
Andrew
#10
Posted 27 February 2013 - 11:24 AM
Thanks,
Here is what another person said on another forum (link posted in previous reply):
"1. Use the Unique Value renderer on the landuse raster.
2. On the symbology tab, set the value field to the landuse description field like in screenshot-3. My description field just happens to be called Landuse.
3. Run Zonal Histogram."
So after playing around, I noticed if I change the symbology value field from "Class_Name" to "Value", Zonal histogram will output the labels column into the table (attached), but they still do not mean anything to me. If I try it with the "Class_Name" instead, I get the following message:
"Background processing has encountered a serious error and is unable to continue."
Also, attached is a screen capture of what I am doing with the Zonal Histogram tool, the raster table and symbology, and the resulting table.
Thank you all for your help...I'm sure I will figure this out eventually...
Attached Files
#11
Posted 28 February 2013 - 03:25 PM
Figured it out.
1) Go to Data Management->Raster->Raster Properties->Build Raster Attribute Table
2) Add raster to a personal geodatabase (this seemed to be the most important part that side stepped all of the errors i kept getting)
3) Follow the First three steps in the previous post.
Also, if anyone cares to actually access the files I was working with (seeing as how no one bothered to tell me the first attachment didn't work
), can go here:
https://docs.google....dit?usp=sharing
Anyone having the same issues should look at my post at on ESRI (link in previous posts here) as it describes it much better that I have here.
Hope this helps other people! ![]()
#12
Posted 06 March 2013 - 09:45 AM
Glad you managed to figure this out in the end - thanks for sharing your solution! ![]()
#13
Posted 07 March 2013 - 03:44 PM
No problem. Attached is a step by step guide I created just for this problem. Hope it helps everyone else!
Attached Files
Also tagged with one or more of these keywords: ArcGIS, raster, .shp, .img, merge, combine, landcover, land use
|
Discussions →
Map Gallery →
Textured Painted ReliefStarted by dm295 , 28 Apr 2013 |
|
|
|
|
Discussions →
GIS →
Zonal Histogram only works for certain FilesStarted by rob_ford16 , 28 Mar 2013 |
|
|
|
|
Discussions →
GIS →
Text styling in ArcGISStarted by Hans van der Maarel , 15 Mar 2013 |
|
|
|
|
Discussions →
GIS →
Case sensitive selection in ArcGISStarted by Hans van der Maarel , 14 Mar 2013 |
|
|
|
|
Advice & Tutorials →
Software Applications →
Blurry text in exportsStarted by kelly , 06 Mar 2013 |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

United States

Back to top
Sweden
United Kingdom








