R/TADAGeospatialRefLayers.R

Defines functions TADA_UpdateTribalLayers

Documented in TADA_UpdateTribalLayers

# Used to store cached tribal feature layers

#' Function to update tribal layer shapefiles.
#' Shapefiles are stored in inst/extdata.
#' Existing shapefiles with the same name will be deleted first if they exist.

TADA_UpdateTribalLayers <- function() {
  writeLayer(AKAllotmentsUrl, "inst/extdata/AKAllotments.shp")
  writeLayer(AKVillagesUrl, "inst/extdata/AKVillages.shp")
  writeLayer(AmericanIndianUrl, "inst/extdata/AmericanIndian.shp")
  writeLayer(OffReservationUrl, "inst/extdata/OffReservation.shp")
  writeLayer(OKTribeUrl, "inst/extdata/OKTribe.shp")
  writeLayer(VATribeUrl, "inst/extdata/VATribe.shp")
}
USEPA/TADA documentation built on April 12, 2025, 1:47 p.m.