Add OSM import to compose file and README

pull/24/head
lukasmartinelli 2016-10-06 08:25:00 +02:00
rodzic 33f11822b1
commit 4ec7016608
2 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -66,6 +66,16 @@ Import [Natural Earth](http://www.naturalearthdata.com/) data.
docker-compose run import-natural-earth
```
Import [OpenStreetMap](http://wiki.openstreetmap.org/wiki/Osm2pgsql) data based on the [ClearTables osm2pgsql style](https://github.com/ClearTables/ClearTables).
In order to do this you first need to clone the latest ClearTables.
- [ ] *Should we use a submodule for ClearTables? On the other hand it is quite convenient to able to work directly on ClearTables while working on the style.*
```bash
git clone https://github.com/ClearTables/ClearTables.git
docker-compose run import-osm
```
### Work on Vector Tile Schema
Run the `db-schema` container each time you modify SQL code inside `./schema`.

Wyświetl plik

@ -14,6 +14,14 @@ services:
env_file: .env
links:
- postgres:postgres
import-osm:
image: "osm2vectortiles/import-osm"
env_file: .env
links:
- postgres
volumes:
- ./data:/import
- ./ClearTables:/opt/cleartables
import-natural-earth:
image: "osm2vectortiles/import-natural-earth"
env_file: .env