
Add Watershed to Blue Line Key
fwa_add_watershed_to_blk.RdAdds polygon (geometry) of aggregated fundamental watersheds to blue line key (blk). The rm distances which is in meters is from the river mouth. If no watershed is returned, which can occur if the rm is in the headwaters of the stream or beyond its upstream end, the geometry is an empty polygon and a warning is given with the number of empty watersheds.
Arguments
- x
An sf object with a polygon sfc column specifying watersheds and an optional rm column specfying the river meter. The rm is set to be 0 if missing.
- exclude
A logical vector specifying whether to exclude the fundamental watershed in which the start falls.
- epsg
A positive whole number of the epsg to transform features to.
- nocache
A flag specifying whether or not to cache results.
Examples
if (FALSE) { # \dontrun{
fwa_add_watershed_to_blk(data.frame(blk = 356308001))
} # }