topoPaths: Identify shortest topographic paths

View source: R/topoPaths.R

topoPathsR Documentation

Identify shortest topographic paths

Description

Identify shortest topographic paths

Usage

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

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. 9, 2022, 1:05 a.m.