Skip to contents

This function clips river segments that intersect with a given bounding box.

Usage

st_intersecting_river(rivers_sf, bbox_polygon)

Arguments

rivers_sf

An `sf` object containing river data.

bbox_polygon

An `sf` or `sfc` object representing the bounding box.

Value

An `sf` object containing the clipped river segments.

Examples

if (FALSE) { # \dontrun{
bbox <- create_bbox(xmin = -10, xmax = 10, ymin = -10, ymax = 10, crs = 4326)
rivers <- download_hydrorivers(region = "eu")
clipped_rivers <- st_intersecting_river(rivers, bbox)
} # }