Using GIS to Compute a Least-Cost Distance Matrix: An Ecological Application Author: Andrew Bunn Mountain Research Center Phone: 919.384.0902 We present a macro to compute a distance matrix D whose elements dij are the functional distances between points i and j. Because many ecosystem elements do not move through the landscape in a straight line, we measured dij using least-cost paths. We used grid functions inside a macro to iteratively loop through a spatial array and compute dij for each unique pair of nodes in the array. These functions are similar to Euclidean distance functions, but instead of working in geographical units they work in cost units. We demonstrate the usefulness of this method in an ecological setting. |