This functions helps to get base maps data from the ThemaKart project as an sf object. The geom names and the general structure of the files can be found in the offical BFS documentation, see https://www.bfs.admin.ch/asset/en/24025645. When using this data, please read the condition of use and copyright mentions.
Usage
bfs_get_base_maps(
geom = NULL,
category = "gf",
type = "Poly",
date = NULL,
most_recent = TRUE,
format = "shp",
asset_number = "24025646"
)
Arguments
- geom
Geometry such as "suis", "kant", "bezk", "polg", "voge", etc.
- category
Category such as 'total_area' ("gf" for "Gesamtflaeche") or 'vegetation_area' ("vf" for "Vegetationsflaeche").
- type
The type of data, i.e. "Poly" or "Pnts".
- date
Date (yyyymmdd) of reference / validity. If not specified, the `most_recent` argument is used.
- most_recent
Get the most recent by sorting the files in decreasing order, if FALSE then read the first file available.
- format
Format of the file, by default SHP format.
- asset_number
Asset number of the base maps zip file.