Home » Software » GRASS GIS: raster, vector, and imagery analysis » Raster Operations » Simple Comparision of Two Least-Cost Path Approaches
Simple Comparision of Two Least-Cost Path Approaches
Feb 19, 2008 metroadminPremise:
Simple comparison between the least-cost path as computed by r.walk vs. r.cost. Default parameters, unity travel friction, and λ = 1 were used with r.walk. Slope percent was used as the accumulated cost for r.cost. Test region similar to that used in a previous navigation example.
Results:
- r.walk
- Shorter total path (6.03 km)
- Tendency to stay mid-slope, and cross large drainage at the gentlest possible position
- r.cost
- Longer total path (7.12 km)
- Tendency to follow drainages upstream-- not always possible in steep terrain
Code:
Prep work see attached files at bottom of page to re-create
Compute the least-cost path via two methods
Vectorize least-cost paths for further analysis
Simple map
Sample the elevation raster at a regular interval
Plot an elevation profile for each path
Attachments:
Links:
Mapping Wifi Networks with Kismet, GDAL, and GRASS
Raster Operations
Using R and r.mapcalc (GRASS) to Estimate Mean Topographic Curvature
Software
- General Purpose Programming with Scripting Languages
- LaTeX Tips and Tricks
- PostGIS: Spatially enabled Relational Database Sytem
- PROJ: forward and reverse geographic projections
- GDAL and OGR: geodata conversion and re-projection tools
- R: advanced statistical package
- GRASS GIS: raster, vector, and imagery analysis
- Generic Mapping Tools: high quality map production