Dear Hugh,

Take a look at the gdistance vignette, example 1.

Best,

Jacob.


________________________________
 From: hughsturrock <hughsturrock@hotmail.com>
To: r-sig-geo@r-project.org 
Sent: Wednesday, 28 November 2012, 10:20
Subject: [R-sig-Geo] Least cost path

Hi all, 

I am trying to model travel times to from any given point to its nearest
hospital (in rural Africa). I've been looking at doing this in ArcGIS and R
and it looks like if I can create a 'cost' raster, there are plenty of
functions like shortestPath in R {gdistance} and Cost Path in Arc that can
work this out. This is fine for factors like landcover, where the cost can
be assumed to be identical irrespective of which direction you are moving
through that pixel, but I'm having difficulty working out how I would asign
slope (from an elevation model) a cost given that the cost of a slope
depends on the direction of travel. Does anyone know of a way to model the
least costly path over an elevation raster which would account for the
direction of travel? That way I could look at both travel to and from the
hospital..

Thanks! 
Hugh 



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Least-cost-path-tp7581785.html
Sent from the R-sig-geo mailing list archive at Nabble.com.

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
	[[alternative HTML version deleted]]

