Least Cost Paths
![]() |
Least Cost Path Options. Start from Analyze menu, or Set on Analysis tab of the Options form.
Files
Procedures
|
Least cost path procedure:
To add the cost to each point in a database.
To show least cost path:
Scripting Least Cost Path
![]() |
Grid size for the cost surface. If you use a large grid, it will process faster and produce smaller files, but there could be paths through many of the urban blocks. The grid for 10 m resolution will be 9 times larger (3*3), and could present problems if you have a really large area and a wimpy computer. |
References
Original DEM (Hanging Rock Canyon, CA). | |
Create cost surface. Create this DEM/grid,
for instance by creating a derivative
grid, multiplying a grid (Edit,
data
manipulation form), or adding multiple grids (Raster GIS
menu).
This is a critical step for the operation. If there are points in
the original DEM you do not want considered, you can
Edit them out before you create the cost
surface. You can edit out regions you do not want the program to consider for the cost surface and eventually the least cost path, either by removing values within a certain range of z values or outlining regions with the mouse (both on the Edit menu). You can edit out regions on the cost surface using an image. To do so, you must associate the cost surface as the DEM to go with the image, on the Modify menu. You can mask so that you are either close to, or away from roads. You could also mask with any other grid. In this example, we are just using a slope map |
|
Create accumulated cost surface, on
Raster GIS
menu. You select a point (in the SW corner in this example, near
the mouth of the canyon in a low slope (low cost) location)
by double clicking. This surface is good only for the selected
starting point.
The colors indicate the cost to get to each point in the grid from the starting location you specified (or to get back to the starting point from every other point in the grid)--blue are "cheap", and red are "expensive". There is also no consideration of directionality for the surface; diagonal segments are the same cost as straight segments. |
|
|
Grid showing downhill direction at each point on accumulated cost surface. This grid will be created and used to create least cost paths, but you do not have to open it. |
Create least cost paths. Open the accumulated
cost surface DEM, and then select option on
Raster GIS
menu for that grid. You select a point by double clicking and the program will trace the paths back
to the starting location and save results as a point
shape file. This shows three different paths, which all converge toward the starting point. To minimize the slopes crossed, the paths go almost straight downhill from the starting points, and then follow the drainage channels. The path shape files have been displayed on the original DEM. This step is very fast. |
Last revision 5/5/2019