delineate_corridor | R Documentation |
The corridor edges on the two river banks are drawn on the provided spatial network starting from an initial guess of the corridor (based e.g. on the river valley).
delineate_corridor(
network,
river,
corridor_init = 1000,
max_width = 3000,
max_iterations = 10,
capping_method = "shortest-path"
)
network |
The spatial network to be used for the delineation |
river |
A (MULTI)LINESTRING simple feature geometry representing the river centerline |
corridor_init |
How to estimate the initial guess of the river corridor. It can take the following values:
|
max_width |
(Approximate) maximum width of the corridor. The spatial network is trimmed by a buffer region of this size around the river |
max_iterations |
Maximum number of iterations employed to refine the
corridor edges (see |
capping_method |
The method employed to connect the corridor edge end
points (i.e. to "cap" the corridor). See |
A simple feature geometry representing the river corridor
bucharest_osm <- get_osm_example_data()
network <- rbind(bucharest_osm$streets, bucharest_osm$railways) |>
as_network()
delineate_corridor(network, bucharest_osm$river_centerline)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.