Determine the extremes (end points) of the river corridor using the network
built from the river center line features (see build_river_network() and
the spatial network used for the delineation. The end points are selected as
the two furthest river crossings of the spatial network that connect the
sub-networks for each river sides.
corridor_end_points(river_network, spatial_network, regions)An sf::sfc_POINT geometry including a pair of points
A sfnetworks::sfnetwork object representing the
river centerline
A sfnetworks::sfnetwork object representing the
spatial network used for the delineation
A simple feature geometry representing the two river sides