fwa_add_collection_to_polygon.Rd
Adds collection to a polygon such as a watershed. If the active sfc polygon column is called geometry it is replaced by the geometry column of the collection. If the collection includes a blue_line_key column the values are copied to column blk replacing any existing values.
fwa_add_collection_to_polygon(
x,
collection = "stream_network",
intersect = FALSE,
filter = NULL,
limit = 10000,
offset = 0,
properties = NULL,
transform = NULL,
epsg = getOption("fwa.epsg", 3005),
nocache = getOption("fwa.nocache", FALSE)
)
fwa_add_collection_to_watershed(
x,
collection = "stream_network",
intersect = FALSE,
filter = NULL,
limit = 10000,
offset = 0,
properties = NULL,
transform = NULL,
epsg = getOption("fwa.epsg", 3005),
nocache = getOption("fwa.nocache", FALSE)
)
A sf object with an active sfc polygon column.
A character string of the collection.
A logical vector specifying whether to intersect the individual features with the polygon as opposed to just including the features that intersect it.
A named vector or list of the filter(s) to apply, where the list
names correspond to column names and the list values correspond to the desired
value, e.g. list(gnis_name = "Sangan River")
.
A positive whole number indicating the maximum number of features to return.
A positive whole number indicating the offset of start of returned results.
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
if (FALSE) {
watershed <- fwa_add_watershed_to_blk(data.frame(blk = 356308001))
fwa_add_collection_to_polygon(watershed)
}