View source: R/gisco_bulk_download.R
gisco_bulk_download | R Documentation |
Downloads zipped data from GISCO and extract them on the
cache_dir
folder.
gisco_bulk_download(
id_giscoR = c("countries", "coastallines", "communes", "lau", "nuts", "urban_audit"),
year = "2016",
cache_dir = NULL,
update_cache = FALSE,
verbose = FALSE,
resolution = "10",
ext = c("geojson", "shp", "svg", "json", "gdb"),
recursive = TRUE
)
id_giscoR |
Type of dataset to be downloaded. Values supported are:
|
year |
Release year of the file. See Details. |
cache_dir |
A path to a cache directory. See About caching. |
update_cache |
A logical whether to update cache. Default is |
verbose |
Logical, displays information. Useful for debugging,
default is |
resolution |
Resolution of the geospatial data. One of
|
ext |
Extension of the file(s) to be downloaded. Formats available are
|
recursive |
Tries to unzip recursively the zip files (if any) included
in the initial bulk download (case of |
See the years available in the corresponding functions:
gisco_get_coastallines()
.
gisco_get_communes()
.
gisco_get_countries()
.
gisco_get_lau()
.
gisco_get_nuts()
.
gisco_get_urban_audit()
.
The usual extension used across giscoR is "geojson"
,
however other formats are already available on GISCO.
Silent function.
You can set your cache_dir
with gisco_set_cache_dir()
.
Sometimes cached files may be corrupt. On that case, try re-downloading
the data setting update_cache = TRUE
.
If you experience any problem on download, try to download the
corresponding .geojson
file by any other method and save it on your
cache_dir
. Use the option verbose = TRUE
for debugging the API query.
For a complete list of files available check gisco_db.
https://gisco-services.ec.europa.eu/distribution/v2/
Other political:
gisco_get_coastallines()
,
gisco_get_countries()
,
gisco_get_lau()
,
gisco_get_nuts()
,
gisco_get_postalcodes()
,
gisco_get_units()
,
gisco_get_urban_audit()
## Not run:
# Countries 2016 - It would take some time
gisco_bulk_download(id_giscoR = "countries", resolution = "60")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.