## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

# Direction and Allocation Rasters for Cost Distance

The cost distance calculation is similar to the Euclidean distance calculation in that both can be used to generate direction and allocation rasters. Both calculations allow caps to be placed on the maximum values in the primary rasters they generate. Cost distance differs from Euclidean distance in three major ways:

• It uses a distance-weighting raster.
• It differs in the way in which the direction raster points along the path.
• It calculates the least-cost path rather than the shortest path.

Because the path generated by cost distance goes from cell center to cell center, each cell in the direction raster contains information that indicates to which of the eight neighbors the path goes next. This information is coded according to Figure 8-20.

Or, in words:

1 means the next cell in the path is to the east (90 degrees).
2 means the next cell in the path is to the southeast (135 degrees).
3 means the next cell in the path is to the south (180 degrees).
4 means the next cell in the path is to the southwest (225 degrees).
5 means the next cell in the path is to the west (270 degrees).
6 means the next cell in the path is to the northwest (315 degrees).
7 means the next cell in the path is to the north (360 degrees).
8 means the next cell in the path is to the northeast ...

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required