Download building footprints
download_buildings.Rd
Downloads building footprints and attribute data from FEMA's USA Structures dataset (https://fema.maps.arcgis.com/home/item.html?id=0ec8512ad21e4bb987d7e848d14e7e24#overview).
Usage
download_buildings(
template,
return = "SpatVector",
output = tempfile(fileext = ".gpkg")
)
Value
A SpatVector
or sf
object with extents matching the SpatRaster
object provided in the template
argument. If API resources are not available an invisible NULL
is returned.
Examples
# \donttest{
## This example requires an internet connection to run
dem <- system.file("extdata", "thompsoncreek.tif", package = "SELECTRdata")
dem <- terra::rast(dem)
buildings <- download_buildings(template = dem)
#> Registered S3 method overwritten by 'jsonify':
#> method from
#> print.json jsonlite
# }