Table of Contents
- Tracking Creatures of Bavarian Folklore Using a Least-Cost Path Model
- Setting up Your Workspace
- Preparing the Data
- Skill Drill: Geocoding an Address and Creating a CSV Table to Import As XY Data
- Skill Drill: Defining the Study Area
- Skill Drill: Acquire Elevation Data from the USGS National Map Viewer
- Skill Drill: Acquire Land Cover Data from the USGS National Map Viewer
- Skill Drill: Acquire Hydrography Data from the USGS National Map Viewer
- Changing Global Environment Settings for
- Creating Cost Surface Models Using a Relative Cost Scale
- Creating a Remap Table to Reclassify Elevation
- Skill Drill: Creating a Remap Table to Reclassify Slope
- Skill Drill: Creating a Remap Table to Reclassify Tree Canopy Density
- Converting the Hydrography Features to Cost Surface Models
- Creating a Total Cost Surface Model
- Creating a Cost-Distance Surface Model
- Creating a Migration Corridor
- Determining the Least-Cost Path
- Skill Drill: Creating a Map of the Results
Determining the Least-Cost Path
Using the cost-distance surface model and the backlink raster, the GIS can find the least-cost path by starting at the destination cell and tracing a least-cost path back to the origin. As the least-cost path is generated, each cell along the path is assigned a value based on the cost units and are written onto a new raster layer. The process stops when it reaches the first backlink cell with a value of zero, the origin. The result is a raster layer modeling the least-cost path. In this step, you will determine the least-cost path for each of the individual den locations to the town of Orick. To prepare, you will have to separate each of the den locations so that they may be entered into the Cost Path tool, one at a time. There are several ways to do this, including selecting each den and creating new shapefiles. However, a very simple way is to use a Definition Query in the layer properties. Open the layer properties for the den locations layer and navigate to the Definition Query tab. Click on the Query Builder button. The Query Builder should look very familiar as it is nearly identical to the Select by Attribute tool. Create a query where the Den_ID is equal to the letter A. Then click OK and OK again to set the layer properties. On the map, you should see that the den locations layer only contains has den A. If you open the attribute table for the den locations layer, you will also see that it contains only one record for den A. A Definition Query is a quick way to make a temporary change to a shapefile without altering the original data or creating new data. With this Definition Query in place, ArcMap will treat this shapefile as having only one point feature, den A.
In ArcMap, open the Cost Path tool. This tool can be found in the Distance toolbox under the Spatial Analyst Tools. Under Input raster or feature destination data, choose the den locations layer. Under the Input Cost distance raster load the Orick cost distance surface. Under the Input cost, backlink raster load the Orick backlink raster. For the Output raster, browse to your working folder and name the file Den_A_Least_Cost_Path.img. Leave all other settings as default and click OK.
The result will be a raster layer with the least-cost path from den A to the town of Orick. As you can see the least cost path is not always the shortest path. Open the attribute table for the den A least-cost path layer. In the attribute table, you will see a field called Value. A value of 1 is given to the cell that contains the source feature. The path with the lowest cost is given a value of 3. Under the PATHCOST field, the total cumulative relative cost is recorded. There are more values that can be assigned if there were multiple paths generated, but this is beyond the scope of this activity. Take a moment to record the total cost for this path. This is located under the PATHCOST field for the record that contains a 3 under the Value field.
Open a blank Excel workbook and create a table recording the following results from your first least-cost path model.
- The Den ID
- The Path Cost
An example table is shown below.
|Least-Cost Path Results|
|Den ID||Path Cost|
Repeat the steps for each den, from B to J. Record the path cost for each.