Skip to contents

Sample a raster along a straight line between 2 points

Usage

rasterprofile(r, xy1, xy2, reso, plot = FALSE)

Arguments

r

A DEM raster

xy1

A matrix with X and Y coordinates for Point 1

xy2

A matrix with X and Y coordinates for Points 2

reso

The minimal resolution of the DEM raster. It is calculated in viewshed and passed along.

plot

Plot the process? Default is FALSE

Value

A boolean vector, indicating if Point 1 (xy1) is visible from all elements of Points 2 (xy2)

See also

Other Viewshed Analysis: cansee(), interpol_view(), plot_viewshed(), viewTo(), viewshed()