Skip to main content

Least Cost Path (AllSource Tools)

Summary

Finds the shortest path between starting points and ending points across a cost surface.

Usage

  • The Input Starting Point and Input Ending Point parameter values must be within the extent of the Input Cost Surface parameter value. Points outside the surface extent will produce an error.

  • Using multiple points as the Input Starting Point value will significantly increase processing time.

  • Using multiple points as the Input Ending Point value may result in more than two output line features.

  • No Data values in the Input Cost Surface parameter value are considered barriers, and the resulting path will route around these areas. If a path cannot be found around No Data cells in the cost surface, a solution may not be possible, and additional steps must be taken to modify the cost surface.

  • Run the tool with the Input Cost Surface parameter value in a projected coordinate system, such as Universal Transverse Mercator (UTM).

  • The Zero Cost Handled As parameter's Small positive option is estimated by the size of the input cost raster and the maximum cost value compared to the limits of the precision of the path calculation algorithm. This is done to reduce the chance of dead ends occurring in creating the output path. The small positive value is estimated as

    \(max(height\_of\_cost\_raster, \space width\_of\_cost\_raster) \space * \space max\_cost\_value \space / \space 100000\)

  • The new StartID and DestID fields are added to the Output Path Feature Class parameter value. These fields represent the starting point and ending point that the lines travel between.

  • The starting and ending points will be copied to the output location and will contain the name of the Output Path Feature Class value with _start and _end appended.

Parameters

Label Explanation Data type

Input Cost Surface

The input raster that will be used to determine the cost to travel from starting point to ending point. No Data values cannot be crossed.

Raster Layer

Input Starting Point

The input starting point feature. Multiple start points will significantly increase processing time.

Feature Set

Input Ending Point

The input ending point feature. Multiple end points will increase the number of output lines, as the resulting path will branch into separate paths.

Feature Set

Output Path Feature Class

The output path feature class.

Feature Class

Zero Cost Handled As

(Optional)

Specifies how zero values and negative values in the Input Cost Surface parameter value will be handled.

  • Small positiveAll zeros and negatives will be changed to a small positive value. This will allow the cells to be traversed. This is the default.

  • No dataAll zeros and negatives will be changed to null values. The cells are considered barriers and will not be traversed and will be avoided.

String

Derived output

Label Explanation Data type

Output Start Point

The symbolized starting point.

Feature Class

Output End Point

The symbolized ending point.

Feature Class

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Requires Spatial Analyst
  • Standard: Requires Spatial Analyst
  • Advanced: Requires Spatial Analyst