Skip to contents

Get swiss geodata

Usage

gdt_opendata_swiss_geodata(
  geolevel = c("national", "canton", "district", "municipality", "zh_counting_districts",
    "lakes"),
  latest = TRUE,
  verbose = FALSE
)

Arguments

geolevel

One of "national", "canton", "district", "municipality", "zh_counting_districts" or "lakes"

latest

Latest geo data (otherwise beginning of the year data)

verbose

Boolean

Value

An sf object

Examples

gdt_opendata_swiss_geodata("national")
#> Simple feature collection with 1 feature and 1 field
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: 485203 ymin: 75286.72 xmax: 834035 ymax: 295859.7
#> Projected CRS: CH1903 / LV03
#>   id                       geometry
#> 1  1 MULTIPOLYGON (((689350.5 27...