Skip to contents

Get the river centreline and surface from OpenStreetMap

Usage

get_osm_river(river_name, bb, crs)

Arguments

river_name

The name of the river

bb

Bounding box of class bbox

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("Dâmbovița", bb, crs)
#> $centerline
#> Geometry set for 1 feature 
#> Geometry type: MULTILINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: 340587.5 ymin: 4897268 xmax: 457820 ymax: 5048321
#> Projected CRS: WGS 84 / UTM zone 35N
#> MULTILINESTRING ((340587.5 5041599, 340614.2 50...
#> 
#> $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 (((438130.6 4916119, 438124.1 4916...
#>