getZone {rlandfire} | R Documentation |
Find LANDFIRE map zone for use with landfireAPI()
Description
getZone
returns the LANDFIRE Map Zone(s) a spatial object intersects or the
zone number from the zone name. Currently, only map zones within CONUS are
supported.
Usage
getZone(data)
Arguments
data |
An sf object or character string with the map zone name. |
Value
Returns a numeric vector containing the map zone(s)
Examples
## Not run:
v <- sf::st_bbox(sf::st_as_sf(data.frame(x = c(-123.7835,-123.6352),
y = c(41.7534,41.8042)),
coords = c("x", "y"),
crs = 4326)) |>
sf::st_as_sfc()
zone <- getZone(v)
## End(Not run)
[Package rlandfire version 1.0.0 Index]