Skip to contents

Get the river centreline and surface from OpenStreetMap

Usage

get_osm_river(bb, river_name, crs = NULL)

Arguments

bb

Bounding box of class bbox

river_name

The name of the river

crs

Coordinate reference system as EPSG code

Value

A list with the river centreline and surface

Examples

bb <- get_osm_bb("Bucharest")
crs <- get_utm_zone(bb)
get_osm_river(bb, "Dâmbovița", crs)
#> $centerline
#> Geometry set for 1 feature 
#> Geometry type: MULTILINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: 342590.9 ymin: 4897268 xmax: 457820 ymax: 5048321
#> Projected CRS: WGS 84 / UTM zone 35N
#> MULTILINESTRING ((342590.9 5043751, 342603 5043...
#> 
#> $surface
#> Geometry set for 1 feature 
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: 418720.8 ymin: 4915950 xmax: 438326.9 ymax: 4924248
#> Projected CRS: WGS 84 / UTM zone 35N
#> MULTIPOLYGON (((427868.6 4920273, 427882.5 4920...
#>