cache_baltimore_data | R Documentation |
Cache data to rappdirs::user_cache_dir("mapbaltimore")
cache_baltimore_data(data = NULL, filename = NULL, overwrite = FALSE)
cache_msa_streets(
url =
"https://geodata.md.gov/imap/rest/services/Transportation/MD_HighwayPerformanceMonitoringSystem/MapServer/2",
filename = "baltimore_msa_streets.gpkg",
crs = pkgconfig::get_config("mapbaltimore.crs", 2804),
overwrite = FALSE
)
cache_edge_of_pavement(
url =
"https://gisdata.baltimorecity.gov/egis/rest/services/OpenBaltimore/Edge_of_Pavement/FeatureServer/0",
filename = "edge_of_pavement.gpkg",
crs = pkgconfig::get_config("mapbaltimore.crs", 2804),
overwrite = FALSE
)
cache_baltimore_property(
url =
"https://geodata.baltimorecity.gov/egis/rest/services/Housing/dmxOwnership/MapServer/0",
location = NULL,
filename = "baltimore_property.gpkg",
crs = pkgconfig::get_config("mapbaltimore.crs", 2804),
overwrite = FALSE
)
show_cached_files()
data |
Data to cache. |
filename |
File name to use for cached file. Defaults to name of data.
If the data is an sf object make sure to include the file type, e.g.
"data.gpkg", supported by |
overwrite |
Logical. Default |
url |
URL |
crs |
Coordinate reference system. |
location |
|
Use cache_msa_streets()
to download and cache street centerline data for
all counties in the Baltimore metropolitan area.
Use cache_edge_of_pavement()
to download and cache edge of pavement
data for Baltimore city.
show_cached_files()
returns a tibble with the columns:
file
, the name of the file,
size_MB
, file size in MB,
modified
, date and time last modified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.