Given a set of transect lines, a flowline network, extend the transect lines out given distances from the left and right Flowlines are required to ensure valid transect intersection relationship is maintained
extend_transects_sides.Rd
Given a set of transect lines, a flowline network, extend the transect lines out given distances from the left and right Flowlines are required to ensure valid transect intersection relationship is maintained
Usage
extend_transects_sides(
transects,
flowlines,
crosswalk_id,
cs_id = "cs_id",
grouping_id = "mainstem",
direction = "any"
)
Arguments
- transects
sf dataframe of linestrings, requires crosswalk_id, cs_id, grouping_id columns and numeric 'extension_distance' column indicating the distance to extend
- flowlines
sf dataframe of linestrings
- crosswalk_id
character, column name that connects features in transects to flowlines
- cs_id
character, column name that uniquely identifies transects within a flowline
- grouping_id
character, column name in both transects and flowlines that denotes which flowlines are grouped with which transects.
- direction
character, whether to extend transects individually from left and right sides, or to strictly extend a transect if BOTH the left and right extension are valid. Valid inputs are either "any", "any_by_specific_distances", or "both".