get_rivers: Retrieve an Open Street Map River Network for a given...

View source: R/add_map_features.R

get_riversR Documentation

Retrieve an Open Street Map River Network for a given catchment area

Description

This function allows you to download a river network layer in 'sf' format for a catchment area of your choice. This can be useful when making many plots of the same area and saves frequent calls to the OSM server for each plot when using river = TRUE in the beavertools::terr_plot() and beavertools::plot_forage_density() functions.

Usage

get_rivers(catchment)

Arguments

catchment

An sf object or an sf-readable file of the catchment area or area of interest. See sf::st_drivers() for available drivers.

Examples

## Not run: 
# this generates an sf object for the river network of the R. Otter catchment.
rivs <- get_rivers(RivOtter_Catch_Area)
plot(sf::st_geometry(rivs))

## End(Not run)

h-a-graham/beavertools documentation built on July 21, 2023, 12:47 a.m.