Gets the upstream stream segment within the fundamental watershed.
fwa_watershed_stream(
blue_line_key,
downstream_route_measure = 0,
bbox = NULL,
properties = NULL,
transform = NULL,
epsg = 4326,
nocache = getOption("fwa.nocache", FALSE)
)
A positive whole number of the stream blue line key.
A positive number of the river metre.
A vector of four numbers indicating bounding box to limit output
features to, e.g. c(minLon, minLat, maxLon, maxLat)
.
A vector of strings of the column names to include. If NULL (default), all columns are retained.
A character vector with the name of the valid transform function followed by the parameter values (e.g. c("ST_Simplify", 100))
A positive whole number of the epsg to transform features to.
A flag specifying whether or not to cache results.
An sf object.
This is useful for adding stream network that was not included in the watershed at measure.
Other functions:
fwa_index_point()
,
fwa_locate_along()
,
fwa_locate_along_interval()
,
fwa_watershed_at_measure()
,
fwa_watershed_hex()
,
hydroshed()
fwa_watershed_stream(356308001, downstream_route_measure = 10000)
#> Simple feature collection with 1 feature and 1 field
#> Geometry type: MULTILINESTRING
#> Dimension: XY
#> Bounding box: xmin: -121.9504 ymin: 49.1401 xmax: -121.9413 ymax: 49.15144
#> Geodetic CRS: WGS 84
#> # A data frame: 1 × 2
#> linear_feature_id geometry
#> * <int> <MULTILINESTRING [°]>
#> 1 700730811 ((-121.9504 49.15144, -121.9501 49.15144, -121.9498 49.1513…