Skip to contents

All functions

add_weights()
Add weights to the network.
as_bbox()
Get the bounding box from the x object
as_network()
Create a network from a collection of line strings.
bucharest_dem
CRiSp example DEM data for Bucharest
bucharest_osm
CRiSp example OSM data for Bucharest
buffer_bbox()
Apply a buffer region to a bounding box
cap_corridor()
Cap the corridor by connecting the edge end points
clean_network()
Clean a spatial network.
clip_and_filter()
Clip lines to the extent of the corridor, and filter valid segment edges
corridor_edge()
Draw a corridor edge on the spatial network.
corridor_end_points()
Find the corridor end points.
default_stac_dem
Endpoint and collection ID of the default STAC colleciton where to access digital elevation model (DEM) data. This is the global Copernicus DEM 30 dataset hosted on AWS, as listed in the EarthSearch STAC API endpoint. Note that AWS credentials need to be setup in order to access the data (not the catalog). References:
delineate_corridor()
Delineate a corridor around a river.
delineate_riverspace()
Delinate the riverspace.
dem_to_cog()
Write DEM to cloud optimized GeoTiff file as specified location
filter_clusters()
Cluster the river crossings and select the shortest crossing per cluster
filter_network()
Subset a network keeping the only nodes that intersect a target geometry.
flatten_network()
Flatten a network by adding points at apparent intersections.
get_cd_char()
Get characteristic value of distribution of cost distance
get_corridor()
Delineate a river corridor on a spatial network.
get_cost_distance()
Derive cost distance function from masked slope
get_dem()
Access digital elevation model (DEM) for a given region
get_intersecting_edges()
Identify network edges that are intersecting a geometry
get_osm_bb()
Get the bounding box of a city
get_osm_city_boundary()
Get the city boundary from OpenStreetMap
get_osm_railways()
Get OpenStreetMap railways
get_osm_river()
Get the river centreline and surface from OpenStreetMap
get_osm_streets()
Get OpenStreetMap streets
get_osmdata()
Retrieve OpenStreetMap data for a given location
get_segments()
Split a river corridor into segments
get_slope()
Derive slope as percentage from DEM
get_stac_asset_urls()
Retrieve the URLs of all the assets intersecting a bbox from a STAC API
get_utm_zone()
Get the UTM zone of a spatial object
get_valley()
Extract the river valley from the DEM
get_valley_polygon()
Create vector/polygon representation of valley without holes from raster mask
get_valley_polygon_no_hole()
Remove possible holes from valley geometry
get_valley_polygon_raw()
Create vector/polygon representation of valley raster mask
initial_corridor()
Draw the initial geometry of a river corridor.
initial_edges()
Identify the initial edges of the river corridor
load_raster()
Retrieve STAC records (of a DEM) corresponding to a list of asset urls, crop and merge with a specified bounding box to create a dem of the specified region
mask_cost_distance()
Mask out river regions incl. a buffer in cost distance raster data
mask_slope()
Mask slope raster, setting the slope to zero for the pixels overlapping the river area.
merge_block()
Merge a block to one of the target geometries
merge_blocks()
Merge a set of blocks to adjacent ones
nearest_node()
Find the node in a network that is closest to a target geometry.
osmdata_as_sf()
Retrieve OpenStreetMap data as sf object
refine_segments()
Refine candidate segments via recursive merging
reproject()
Reproject a raster or vector dataset to the specified coordinate reference system (CRS)
river_buffer()
Draw a corridor as a fixed buffer region around a river.
river_valley()
Draw a corridor as an estimate of the river valley.
set_units_like()
Set the units of x as the units of y
shortest_path()
Find shortest path between a pair of nodes in the network.
simplify_network()
Simplify a spatial network by removing multiple edges and loops.
smooth_dem()
Spatially smooth dem by (window) filtering
split()
Split a geometry along a (multi)linestring.
split_aoi()
Split the area of interest (AoI) by a river.