powered by
Downloads zipped data from GISCO and extract them on the cache_dir folder.
cache_dir
gisco_bulk_download( id_giscoR = "countries", year = "2016", cache_dir = NULL, update_cache = FALSE, verbose = FALSE, resolution = "10", ext = "geojson", recursive = TRUE )
Type of dataset to be downloaded. Values supported are:
"coastallines"
"communes"
"countries"
"lau"
"nuts"
"urban_audit"
Release year. See Release years available on gisco_get.
gisco_get
A path to a cache directory. See Details on gisco_get.
A logical whether to update cache. Default is FALSE. When set to TRUE it would force a fresh download of the source .geojson file.
FALSE
TRUE
.geojson
Display information. Useful for debugging, default is FALSE.
Resolution of the geospatial data. One of
"60": 1:60million
"20": 1:20million
"10": 1:10million
"03": 1:3million
"01": 1:1million
Extension of the file(s) to be downloaded. Available formats are "geojson", "shp", "svg", "json", "gdb". See Details.
Tries to unzip recursively the zip files (if any) included in the initial bulk download (case of ext = "shp".
ext = "shp"
Silent function.
See the years available in gisco_get
The usual extension used across giscoR is "geojson", however other formats are already available on GISCO.
This function helps building a personal shape library on cache_dir (or options(gisco_cache_dir = "path/to/dir"), if set by the user).
options(gisco_cache_dir = "path/to/dir")
# NOT RUN { # Countries 2016 - It would take some time gisco_bulk_download(id_giscoR = "countries", resolution = "60") # }
Run the code above in your browser using DataLab