gcost: calculates the least cost distance using a already existing...

Description Usage Arguments Value Author(s) Examples

Description

least cost path algorithm are useful for al lot of applications. gdistance is providing a generic R-ish approach that is cool for smaller data set. If you want to go bigger than 2000*2000 pixel than you should engage something else. This implementation uses the incredible power of GRASS 7. It calculates the least cost pathes for a set of given points for each point in the list to all other points.

Usage

1
gcost(runDir,currentP,allP)

Arguments

runDir

the choosen working directory

currentP

actual startpoint

allP

list of all Points

Value

gcost basically returns (a) dataframe with the position of startpoint,destination point and distance. Additionally it writes a shapefile containing all pathes to the destinations for the source point

Author(s)

Chris Reudenbach

Examples

1
2
3
4
5
#### Example to use gcost for a common analysis of the
    estimated spreading distances of an specifified area

#
gcost(rootDir = "/home/creu/proj/beetle/cost",c("91.52", "30.62"),c("91.28" ,"30.1"))

gisma/parseSpeciesList documentation built on May 17, 2019, 5:27 a.m.