Skip to contents

Get an area of interest (AoI) around a river, cropping to the bounding box of a city

Usage

get_river_aoi(river, city_bbox, buffer_distance)

Arguments

river

A list with the river centreline and surface geometries

city_bbox

Bounding box of class bbox around the city

buffer_distance

A positive number representing the buffer size around the river in meters. The upper limit is unrestricted.

Value

An sf::sfc_POLYGON object in lat/lon coordinates

Examples

if (FALSE) { # interactive()
bb <- get_osm_bb("Bucharest")
river <- get_osm_river(bb, "Dâmbovița")
get_river_aoi(river = river, city_bbox = bb, buffer_distance = 100)
}