Skip to contents

Cap the corridor by connecting the edge end points

Usage

cap_corridor(edges, method = "direct", network = NULL)

Arguments

edges

A simple feature geometry representing the corridor edges

method

The method employed for the capping:

  • direct (default): connect the start points and the end points of the edges via straight segments

  • shortest-path: find the network-based shortest-path connections between the edge end points.

network

A spatial network object, only required if method = 'shortest-path'

Value

A simple feature geometry representing the corridor (i.e. a polygon)