Spatial Analysis II-raster2
Spatial Analysis II-raster2
Fall 2002
We can now use the Logging shapefile layer to define zones based on the individual
polygons or parcels of land (n=38). We can then use these zones and Zonal Statistics
from the Spatial Analyst menu to calculate the number of cells and area contained within
each parcel or polygon. Once we have area of the parcels, we can then calculate the total
cost of that parcel using the field that provides information on the Cost per hectare
(10000, 15000, 20000). Consequently, we want to create a table that provides the parcel
ID, area of that parcel (in square meters), and Cost per hectare.
To do so:
1. Create a new grid that identifies individual polygons (or parcels) based on
their ID values.
2. Use Zonal Statistics to calculate area occupied by each parcel.
3. You may need to Export the zonal statistics table to allow further editing.
4. Add a new field (Total_Cost) and calculate the cost to purchase parcel based
on area and Cost_ha.
? Create a new grid layer from the Logging layer using
Convert features to raster from the Spatial Analyst
menu. Select logging as the Input feature, ID as the
Field, and 10 (meters) as the output cell size. Name the
new grid Forestzone10m.
ID will provide the values for each zone (or
polygon/parcel). We used 10m to match the
cell size of all other layers created in this
document.
Examine the new grid and display using unique values and Value as the field.
Each parcel is drawn as a different color. Hide the legend for the Forestzone10m
grid.
? Determine area and other statistics based on data in Forestbuf10m for each zone
identified by Forestzone10m using Zonal Statistics from the Spatial Analyst menu.
Name the table parcelcost.dbf.
Select Forestzone10m as the Zone dataset, Value as the
Field, and Forestbuf10m as the Value raster.
A new table (parcelcost.dbf) pops open titled Stats of
Forestbuf10mwithin Forestzone10mwhich contains
38 rows, one for each zone (= one for each forest
polygon in Logging), and 13 columns: for Value, Count,
Area, Min, Max, Range, Mean, STD, Sum, Variety,
Majority, Minority, Median. The critical fields for our
analysis are Area and Mean.
Examine the values in the table. Why are most of the values equivalent (e.g., Min, Max,
Mean, Median....)?
? Calculate the total cost to of each contiguous forested area. To do this:
1. Add a new field (long integer) called Total_Cost.
2. Right-click on Total_Cost and select Calculate.
3. Type in the expression to give you the total cost of each parcel (or zone).
Total_Cost = (Area * Mean)/10000
Remember that the area field is in square meters (based on map units) and the
Mean provides data on the Cost per ha. We divide by 10000 because there are
10000 square meters in each hectare.
Note: the sum of these costs should equal the total cost determined earlier ($1,182,500) or
be very close. There may be slight differences that resulted due to conversion from raster
to features and then back again. Use Statistics to determine the sum of the Total_cost
across all parcels (or zones).
? Join parcelcost.dbf to Logging layer and display the cost of purchasing each parcel as
graduate colors using 4 natural breaks. You might want to hide several of the fields that
are not needed to make the table easier to view.
The Attributes of Logging.shp table now contains an approximation of the area
value in dollars for each forest polygon.
? Save the document.
? Exit ArcMAP.