swissnames

Geographic Names of Switzerland Build Status

swissnames provides curated GeoJSON extracts from the free swissNAMES3D data set from swisstopo. This is either meant for direct map overlays in web map clients or for adding geographic names to your data set.

Data

Please make sure to understand the licensing terms before using the data in your project.

The data can be found in the ./data directory. You can explore the GeoJSON files directly on GitHub.

List and explanation of data extracts

License

The geo data from swisstopo is licensed under the Licence for the free geodata of the Federal Office of Topography swisstopo and by using the data extracts you are legally bound to the terms of this license as of section 6d. All other code is MIT licensed. This repo refines the original swisstopo data and redistributes that refined data (allowed usage according to section 4j).

Data Quality and Coverage

The data from swisstopo is very accurate. However for many special cases it is lacking coverag and you will get more features if you extract them directly from OpenStreetMap.

The data is especially made for labelling (although ranking is difficult without more information). Some gold nuggets include the very detailed place names in settlement.geojson which includes population classes.

Run Workflow

The entire project is structured components using Docker containers to work together. Ensure you meet the prerequisites.

By default you will use the containers published to DockerHub. You can also build the containers yourself with make. Start up the PostgreSQL database with the PostGIS extension.

docker-compose up -d postgres

Now import the swisstopo swissNAMES3D data set.

docker-compose run import-swisstopo

Import the required database schema (views and helper functions).

docker-compose run db-schema

Export the GeoJSON files. The exported GeoJSON files are stored in ./data.

docker-compose run export-geojson