Determine Travel Cost Path As Polyline

Determine Travel Cost Path as Polyline tool illustration


This tool calculates the least cost polyline path between sources and known destinations.

Example applications include the following:

If Use current map extent is checked, only those locations in the input layers that are visible within the current map extent will be analyzed. If unchecked, all locations in both input layers will be analyzed, even if they are outside the current map extent.

Choose raster or feature source layer to determine paths from


An image service or feature service that identifies the cells from which the least-cost path is determined to the least costly destination.

If the input is an image service, the input consists of cells that have valid values (zero is a valid value), and the remaining cells must be assigned NoData.

Choose travel cost raster layer


A raster defining the impedance or cost to move planimetrically through each cell.

The value at each cell location represents the cost-per-unit distance for moving through the cell. Each cell location value is multiplied by the cell resolution while also compensating for diagonal movement to obtain the total cost of passing through the cell.

The values of the cost raster can be integer or floating point, but they cannot be negative or zero (you cannot have a negative or zero cost).

Input Destination Raster or Features


An input that defines the destinations used to calculate the distance. The layer can be raster or feature.

If the input is an image service, the input consists of cells that have valid values (zero is a valid value), and the remaining cells must be assigned NoData.

Result polyline layer name


The name of the layer that will be created in My Content and added to the map. The default name is based on the tool name and the input layer name. If the layer already exists, you will be prompted to provide another name.

You can specify the name of a folder in My Content where the result will be saved using the Save result in drop-down box.

Choose type of paths to determine


Defines the manner in which the values and zones on the input destination data will be interpreted in the cost path calculations.

  • Best Single—For all cells or locations on the input destination data, the least-cost path is derived from the location with the minimum of the least-cost paths to source location. This is the default
  • To Each Cell—For each cell or location with valid values on the input destination data, a least-cost path is determined and saved on the output feature service. With this option, each cell of the input destination data is treated separately, and a least-cost path is determined for each from cell.
  • To Each Zone—For each zone on the input destination data, a least-cost path is determined and saved on the output feature service. With this option, the least-cost path for each zone begins at the cell or location with the lowest cost distance weighting in the zone.