Generate Cross Sections Across Hydrographic Network
cut_cross_sections.Rd
Generate Cross Sections Across Hydrographic Network
Usage
cut_cross_sections(
net,
id = NULL,
cs_widths = 100,
num = 10,
smooth = TRUE,
densify = 2,
rm_self_intersect = TRUE,
fix_braids = FALSE,
terminal_id = NULL,
braid_threshold = NULL,
version = 2,
braid_method = "comid",
precision = 1,
add = FALSE
)
Arguments
- net
Hydrographic LINESTRING Network
- id
Unique Identifier in net
- cs_widths
Bankfull Widths (length of cross sections for each net element)
- num
Number of transects per Net element
- smooth
logical, whether to smooth linestring geometries or not. Default is TRUE.
- densify
numeric, how many times more points should be added to linestrings. Default is 2.
- rm_self_intersect
logical, whether to remove self intersecting transect linestrings
- fix_braids
logical, whether to fix braided transect lines or not. If TRUE, linestrings that are part of a braided network are augmented. Default is FALSE.
- terminal_id
character, column name containing a unique identifier, delineating separate networks in the 'net' dataset. Default is NULL which will best effort determine the connected components in the network to try and create a 'component_id' column in 'net'
- braid_threshold
numeric value, value of the total length of all flowlines in a braid. Only braids with total flowline lengths less than or equal to the threshold will be considered by function (i.e. determines that maximum braid size that fix_braid_transects() should operate on). Default is NULL, which will attempt to fix all the braid transects in the data
- version
integer, version number of braid algorithm to use, either 1 or 2. Default is 2.
- braid_method
The method to determine the geometries to cut. Options are "comid", "component", or "neighbor". Default is "comid"
- precision
int, distance in meters. Only applicable when fix_braids = TRUE. This is the number of meters to approximate final cross section linestring length. Increasing this value will decrease runtime of cross section extension algorithm. Value you must be greater than 0. Default is 1
- add
logical indicating whether to add original 'net' data to the outputted transect lines. Default is FALSE.