rcrisp0.2.0 package

Automate the Delineation of Urban River Spaces

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.

buffer

Apply a buffer region to a sf object

build_river_network

Build a spatial network from river centerlines

cache_directory

Return the cache directory used by the package

cap_corridor

Cap the corridor by connecting the edge end points

check_cache

Check cache

check_invalid_geometry

Check and fix invalid geometries

clean_network

Clean a spatial network.

clear_cache

Remove cache files

clip_and_filter

Clip lines to the extent of the corridor, and select valid segment edg...

combine_river_features

Combine river centerline and surface

corridor_edge

Draw a corridor edge on the spatial network.

corridor_end_points

Find the corridor end points.

default_stac_dem

Default STAC collection

delineate_corridor

Delineate a river corridor on a spatial network.

delineate_riverspace

Delineate the space surrounding a river

delineate_segments

Split a river corridor into segments

delineate_valley

Extract the river valley from the DEM

delineate

Delineate a corridor around a river.

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 clust...

filter_network

Subset a network keeping the components that intersect a target geomet...

find_intersections

Find intersections between the edges of two networks

flatten_network

Flatten a network by adding points at apparent intersections.

get_cd_char

Get characteristic value of distribution of cost distance

get_corridor_edges

Split corridor along the river to find edges on the two banks

get_cost_distance

Derive cost distance function from masked slope

get_dem_cache_filepath

Get file path where to cache digital elevation model (DEM) data

get_dem_example_data

Get example DEM data

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_buildings

Get OpenStreetMap buildings

get_osm_city_boundary

Get the city boundary from OpenStreetMap

get_osm_example_data

Get example OSM data

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_cache_filepath

Get the file path where to cache results of an Overpass API query

get_osmdata

Retrieve OpenStreetMap data for a given location

get_river_aoi

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

get_river_banks

Draw the regions corresponding to the two river banks

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 AP...

get_utm_zone

Get the UTM zone of a spatial object

get_valley_polygon_no_hole

Remove possible holes from valley geometry

get_valley_polygon_raw

Create vector/polygon representation of valley raster mask

get_valley_polygon

Create vector/polygon representation of valley without holes from rast...

initial_edges

Identify the initial edges of the river corridor

load_dem

Retrieve DEM data from a list of STAC assets

load_raster

Load raster data from one or multiple (remote) files

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 overlappin...

match_osm_name

Match OpenStreetMap data by name

nearest_node

Find the node in a network that is closest to a target geometry.

osmdata_as_sf

Retrieve OpenStreetMap data as sf object

osmdata_query

Query the Overpass API for a key:value pair within a bounding box

read_data_from_cache

Read data from the cache directory

reproject

Reproject a raster or vector dataset to the specified coordinate refer...

river_buffer

Draw a corridor as a fixed buffer region around a river.

select_nonintersecting_lines

Select non-intersecting line segments

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_by

Split a geometry along a (multi)linestring.

write_data_to_cache

Write data to the cache directory

Provides tools to automate the morphological delineation of riverside urban areas based on a method introduced in Forgaci (2018) <doi:10.7480/abe.2018.31>. Delineation entails the identification of corridor boundaries, segmentation of the corridor, and delineation of the river space using two-dimensional spatial information from street network data and digital elevation data in a projected CRS. The resulting delineation can be used to characterise spatial phenomena that can be related to the river as a central element.

  • Maintainer: Claudiu Forgaci
  • License: Apache License (>= 2)
  • Last published: 2025-08-21