Skip to main content

How do I find least cost path over a DEM based on slope magnitude and direction

What sort of algorithms can I use to find a least cost path through a DEM where it costs more to traverse a cell going downhill or uphill than it does to follow the contour of the land?

All the examples I've seen involve creating a least cost surface where the magnitude of the slope is part of the cost - but the direction isn't.

Additionally, the examples assume the cost to travel through a cell does not depend on the direction of travel.

Kirk Kuykendall
  • 25.8k
  • 8
  • 67
  • 155