This repository provides TopoJSON files for Switzerland from publicly available swisstopo geodata.
To generate the TopoJSON files the steps descriped by Interactive Things were followed. However, the descriped steps are difficult to reproduce on Windows and Linux machines. That is the reason why the TopoJSON files are made available in this repository.
The following TopoJSON files can be found in the topo directory:
ch-country.jsonch-cantons.jsonch-districts.jsonch-municipalities.jsonch-plz.json(zip code boundaries)ch-country-lakes.json(country boundaries + lakes)ch-cantons-lakes.json(canton boundaries + lakes)ch-districts-lakes.json(district boundaries + lakes)ch-municipalities-lakes.json(municipality boundaries + lakes)ch-lakes.jsonch.json(all of the above combined)- For each canton a file with its municipalities and lakes, e.g.
zh-municipalities.jsonandzh-municipalities-lakes.json
- Projected, cartesian coordinates
- Scaled and simplified to a size of 960 × 500 pixels
- id The official ID of the feature, i.e., municipality (BFS), canton, district, lake number or zip code
The coordinates of the source files is the official Swiss reference system CH1903 with already projected coordinates.
This means that if you use D3.js, you must disable the projection (see this example of New York Block Groups)
var path = d3.geo.path()
.projection(null);- TopoJSON Cantons and Municipalities (stored in a single file!)
- TopoJSON Cantons
- Swiss Topography
Jeremy Stucki, Interactive Things
Tim Hagmann (creating the TopoJSON files)
Data source is the Swiss Federal Office of Topography, swissBOUNDARIES3D 2014.
- Geodata from swisstopo is licensed under the Licence for the free geodata of the Federal Office of Topography swisstopo
- Everything else: BSD