View source: R/all_shapefiles.R
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.
1 2 | all_shapefiles(check_dl = FALSE, dataset = c("nhdh", "hydrolakes",
"nhdplusv2"), feature_type = c("waterbody", "flowline"))
|
check_dl |
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). |
dataset |
name of dataset to use for matching. |
feature_type |
name of feature layer to match. The hydrolakes dataset does not include a flowline layer. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.