Skip to contents

Delineation

Functions for full or specific delineation

delineate()
Delineate a corridor around a river
delineate_valley()
Extract the river valley from the DEM
delineate_corridor()
Delineate a river corridor on a spatial network
delineate_segments()
Split a river corridor into segments
delineate_riverspace()
Delineate the space surrounding a river

Data

Get OSM data

Get OSM data for delineation

get_osmdata()
Retrieve OpenStreetMap data for a given location
get_osm_bb()
Get the bounding box of a city
get_osm_city_boundary()
Get the city boundary from OpenStreetMap
get_osm_river_centerline()
Get the river centreline from OpenStreetMap
get_osm_river_surface()
Get the river surface from OpenStreetMap
get_osm_streets()
Get OpenStreetMap streets
get_osm_railways()
Get OpenStreetMap railways
get_osm_buildings()
Get OpenStreetMap buildings
get_river_aoi()
Get an area of interest (AoI) around a river, cropping to the bounding box of a city
osmdata_as_sf()
Retrieve OpenStreetMap data as sf object

Get DEM data

Get DEM data for delineation

get_dem()
Access digital elevation model (DEM) for a given region
load_dem()
Retrieve DEM data from a list of STAC assets
default_stac_dem
Default STAC collection
get_stac_asset_urls()
Retrieve the URLs of all the assets intersecting a bbox from a STAC API

Example data

Example OSM, DEM and delineation data

get_osm_example_data()
Get example OSM data
get_dem_example_data()
Get example DEM data
bucharest_dambovita
rcrisp example delineation data for Bucharest

Network preparation

Functions to prepare network for delineation

as_network()
Create a network from a collection of line strings
flatten_network()
Flatten a network by adding points at apparent intersections
clean_network()
Clean a spatial network

Helpers

Helpers used throughout delineation and data retrieval functions

as_bbox()
Get the bounding box from the x object
as_crs()
Standardise the coordinate reference system (CRS) of an object
get_utm_zone()
Get the UTM zone of a spatial object
reproject()
Reproject a raster or vector dataset to the specified coordinate reference system (CRS)

Cache

Functions to handle cached data

check_cache()
Check cache
clear_cache()
Remove cache files
cache_directory()
Return the cache directory used by the package