Skip to contents

Get the river centreline and surface from OpenStreetMap

Usage

get_osm_river(bb, river_name, crs = NULL, force_download = FALSE)

Arguments

bb

Bounding box of class bbox

river_name

The name of the river as character vector of length 1, case-sensitive.

crs

Coordinate reference system as EPSG code

force_download

Download data even if cached data is available

Value

A list with the river centreline as object of class sf::sfc_LINESTRING or sf::sfc_MULTILINESTRING and river surface of class sf::sfc_POLYGON or sf::sfc_MULTIPOLYGON.

Examples

if (FALSE) { # interactive()
bb <- get_osm_bb("Bucharest")
crs <- get_utm_zone(bb)
get_osm_river(bb = bb, river_name = "Dâmbovița", crs = crs,
              force_download = FALSE)
}