download_geodata: Download datasets

View source: R/download_geodata.R

download_geodataR Documentation

Download datasets

Description

download_geodata downloads datasets from the geo-information platform of the Swiss Confederation (https://data.geo.admin.ch/).

Usage

download_geodata(dataset, path, unzip = TRUE, available_geodata)

Arguments

dataset

character string containing the name of an available dataset. Use get_available_geodata to find the corresponding names.

path

the directory to download files to.

unzip

if TRUE, the downloaded folder is unzipped and the zip folder is deleted.

available_geodata

result of a previous call with get_available_geodata. Optional argument.

Details

The acquisition and use of data or services is free of charge, subject to the provisions on fair use (see https://www.geo.admin.ch/terms-of-use).

Examples

## Not run: 
# Download data on building lines for motorways
download_geodata("ch.astra.baulinien-nationalstrassen")

## End(Not run)


zumbov2/swissgd documentation built on Nov. 22, 2022, 9:30 p.m.