Hi all

I am trying to connect bivariate location points together to form a route.
My points refer to fish locations, and so I need paths that only pass
through water, and not the surrounding land. Basically, I need to do
multiple least cost path analyses and join them altogether. I would like to
do this in R, as I have more experience there than I do with ArcGIS,
python, modelbuilder, etc.
I have been trying to use the gdistance package to calculate shortest paths
between bivariate locations of fish. I have used ArcGIS to generate a cost
surface, with water being coded as 1 and land as 999, so that paths will
only be in the water. I convert this to a transition object to use in
shortestPath, and then try to run it between two points in my
SpatialPointsDataFrame. But when I run it, R shuts down every single time.
I have tried aggregating my raster up to 1000x less cells to see if the
resolution was the issue, but I am still facing the same problem. There are
no NAs in either my cost raster or my points.
Could this be a bug? Or is there something I can do to resolve this? Any
help would be greatly appreciated.

Melanie


-- 
Melanie Shapiera
MSc candidate
Memorial University of Newfoundland

	[[alternative HTML version deleted]]

