topoPaths: Identify shortest topographic paths

Description Usage Arguments Details Value Examples

View source: R/topoPaths.R

Description

Identify shortest topographic paths

Usage

1
topoPaths(t.dist, pts)

Arguments

t.dist

A TransitionLayer object.

pts

A SpatialPoints object for the geographic points from which to calculate pairwise distances and paths.

Details

This function identifies shortest topographic paths from a topographic TransitionLayer. It does not need to be called separately from the topoDist and topoLCP functions.

Value

An object of class SpatialLines

Examples

1
2
3
4
5
6
xy <- matrix(ncol = 2, byrow = TRUE,
   c(-119.5566, 37.72474,
   -119.4718, 37.76078))
xy <- sp::SpatialPoints(xy)
topoTL <- topoSurface(Yosemite$DEM)
topoPaths(topoTL, xy)

topoDistance documentation built on Aug. 2, 2019, 5:05 p.m.