Returns list of paths to all locally cached shapefiles for a specific dataset
for use in custom processing.
If check_dl == TRUE, all shapefiles for the specified dataset
are downloaded to your local machine (skipping those that have been
previously downloaded). This is a great way to pre-cache all
shapefiles for a specific dataset. The files can be loaded into R and iterated
over for custom mapping or processing of entire U.S. National or
Global datasets.
all_shapefiles(check_dl = FALSE, dataset = c("nhdh", "hydrolakes",
"nhdplusv2"), feature_type = c("waterbody", "flowline"))If TRUE, checks to ensure all files for that dataset have been downloaded. This check takes some time (~30 seconds) to check all files (and much longer to dowload if necessary).
name of dataset to use for matching.
name of feature layer to match. The hydrolakes dataset does not include a flowline layer.