fwa_watershed_hex: Freshwater Atlas Watershed Hex

View source: R/watershed-hex.R

fwa_watershed_hexR Documentation

Freshwater Atlas Watershed Hex

Description

Gets a 25m hexagon grid covering the fundamental watershed in which the river metre lies.

Usage

fwa_watershed_hex(
  blue_line_key,
  downstream_route_measure = 0,
  limit = 10000,
  bbox = NULL,
  properties = NULL,
  transform = NULL,
  epsg = 4326,
  nocache = getOption("fwa.nocache", FALSE)
)

Arguments

blue_line_key

A positive whole number of the stream blue line key.

downstream_route_measure

A positive number of the river metre.

limit

A positive whole number indicating the maximum number of features to return.

bbox

A vector of four numbers indicating bounding box to limit output features to, e.g. c(minLon, minLat, maxLon, maxLat).

properties

A vector of strings of the column names to include. If NULL (default), all columns are retained.

transform

A character vector with the name of the valid transform function followed by the parameter values (e.g. c("ST_Simplify", 100))

epsg

A positive whole number of the epsg to transform features to.

nocache

A flag specifying whether or not to cache results.

Value

An sf object.

See Also

API documentation

Other functions: fwa_index_point(), fwa_locate_along(), fwa_locate_along_interval(), fwa_watershed_at_measure(), fwa_watershed_stream(), hydroshed()

Examples

## Not run: 
fwa_watershed_hex(356308001, downstream_route_measure = 10000)

## End(Not run)

poissonconsulting/fwapgr documentation built on Nov. 3, 2024, 2:06 p.m.