kopia lustrzana https://github.com/openmaptiles/openmaptiles
Add OSM import to compose file and README
rodzic
33f11822b1
commit
4ec7016608
10
README.md
10
README.md
|
@ -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`.
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue