Learn R Programming

rlandfire (version 2.0.1)

getZone: 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)

Value

Returns a numeric vector containing the map zone(s)

Arguments

data

An sf object or character string with the map zone name.

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab