fwa_read_obstructions: Read from obstructions layer.

Description Usage Arguments Value Examples

View source: R/read-layer.R

Description

Read from obstructions layer.

Usage

1
2
3
4
5
6
7
8
9
fwa_read_obstructions(
  x = NULL,
  tributaries = FALSE,
  named_only = FALSE,
  crs = 3005,
  collect = TRUE,
  check = TRUE,
  input_type = NULL
)

Arguments

x

A vector of valid GNIS_NAME, WATERSHED_KEY, WATERSHED_GROUP_NAME or WATERSHED_GROUP_CODE. If NULL, entire dataset is read.

tributaries

A flag indicating whether to read all tributaries in addition (only applicable if x is GNIS_NAME or WATERSHED_KEY).

named_only

A flag indicating whether to only include features with GNIS_NAME.

crs

The epsg code for the coordinate reference system. Defaults to '3005' (B.C. Albers). See https://epsgi.io.

collect

A flag indicating whether to collect result.

check

A flag indicating whether to check that x is valid.

input_type

A character string of the column name to filter x by. If NULL, input_type is guessed. This is useful if input is both GNIS_NAME and WATERSHED_GROUP_NAME, e.g. 'Skagit River'.

Value

A sf object with sfc_POLYGON geometry.

Examples

1
2
3
4
## Not run: 
fwa_read_obstructions("GRAI")

## End(Not run)

poissonconsulting/fwabc documentation built on Feb. 18, 2021, 3:24 a.m.