Skip to content

Swiss cantons and municipalities in ESRI Shapefile, GeoJSON and TopoJSON formats.

Notifications You must be signed in to change notification settings

christophe-g/swiss-maps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiss Maps

This repo hosts Swiss canton and municipality geodata in open formats that can be used to build static and interactive maps (e.g. with D3).

The following formats are available:

Development Notes

ESRI Shapefiles

The ESRI Shapefiles are generated with QGIS using the 'V200' municipality area Shapefiles (QGIS wouldn't combine the cantons with the 'swissBOUNDARIES3D' files). Foreign municipalities are removed.

The CRS is set to WGS84 because that's the default for GeoJSON.

The simplified shapefiles are generated with MapShaper, using the Visvalingam algorithm with 50% simplification.

GeoJSON

Run rake geojson to generate the GeoJSON files from the shapefiles. Useful feature properties are automatically populated and converted to camelCase. Coordinates are rounded to a precision of 3 with LilJSON.

TopoJSON

Run rake topojson to generate the TopoJSON files from the GeoJSON files. Note that the simplified files are using the non-simplified GeoJSON as input and are simplified using TopoJSON with the -s 1000 setting.

Examples

Copyright and License

Author

Jeremy Stucki, Interactive Things

Data Source

Data source is the Swiss Federal Office of Topography, swissBOUNDARIES3D 2012.

License

This agreement under public law in accordance with Article 12, paragraph 1b of the Swiss Federal Act of 5 October 2007 on Geoinformation (hereinafter referred to as Geoinformation Act) regulates access to, and use of, the federal geodata database.

By accepting this agreement, the licensee acknowledges all contractual provisions – in particular the scope of the licence and the contractual obligations – as well the applicability of Swiss federal legislation governing geoinformation.

By accepting this agreement, the licensee also acknowledges the sole right of the licensor to regulate access to, and use of, the federal geodata database. The attention of the licensee is herewith drawn to the fact that geodata may be protected under copyright law. The licensee thus acknowledges the exclusive right of the licensor to determine the use of the data.

Full license agreement

About

Swiss cantons and municipalities in ESRI Shapefile, GeoJSON and TopoJSON formats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published