Retrieve an Open Street Map River Network for a given catchment area
get_rivers.Rd
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.
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
if (FALSE) {
# 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))
}