Friday 30 November 2018

arcmap - Counting raster values in each polygon using ArcGIS Desktop?


I have a Watershed with ~100 smaller watersheds as a shapefile. I want to count the number of different land use values (they are in a 30x30m raster) in each of the small watersheds.


I tried combining them but nothing turns out they way I need it. Which tool or routine can I use to get this?


enter image description here



Answer



One of the powerful tools in ArcGIS is the Tabulate Area tool, which allows you to calculate the area of each land use within each polygon in the polygon shapefile (watershed in your case).


The output will be a table that computes the area of land use in each polygon. If you want to know the number of pixels of land use simply you can create a new column and divide the area by 900 (30 x 30) and you will get the number of pixels of land use within each polygon.


Spatial Analyst extension is required to use Tabulate Area tool.



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...