rasterprofile: Sample values from a raster

Description Usage Arguments Value See Also

View source: R/visibility.R

Description

Sample a raster along a straight line between 2 points

Usage

1
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()


windfarmGA documentation built on May 5, 2021, 5:08 p.m.