get_osm_river_surface: Get the river surface from OpenStreetMap

View source: R/osmdata.R

get_osm_river_surfaceR Documentation

Get the river surface from OpenStreetMap

Description

Get the river surface from OpenStreetMap

Usage

get_osm_river_surface(bb, river_centerline, crs = NULL, force_download = FALSE)

Arguments

bb

Bounding box of class bbox

river_centerline

The river centerline as an object of class sf::sfc_LINESTRING or sf::sfc_MULTILINESTRING

crs

Coordinate reference system as EPSG code

force_download

Download data even if cached data is available

Value

The river surface as object of class sf::sfc_POLYGON or sf::sfc_MULTIPOLYGON.

Examples


bb <- get_osm_bb("Bucharest")
crs <- get_utm_zone(bb)
river <- get_osm_river_centerline(bb, "Dâmbovița")
get_osm_river_surface(bb = bb, river_centerline = river, crs = crs,
              force_download = FALSE)


rcrisp documentation built on Nov. 24, 2025, 5:07 p.m.