Learn R Programming

windfarmGA (version 2.3.0)

viewTo: Calculate Visibility between multiple locations

Description

Check if a location is visible from multiple locations

Usage

viewTo(r, xy1, xy2, h1 = 0, h2 = 0, reso)

Arguments

r

A DEM raster

xy1

A vector/matrix with X and Y coordinates for Point 1

xy2

A vector/matrix with X and Y coordinates for Point 2

h1

A numeric giving the extra height offset for Point 1

h2

A numeric giving the extra height offset for Point 2

reso

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

Value

A boolean vector, indicating if xy1 is visible from all elements of xy2

See Also

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