Skip to content

Commit

Permalink
Merge pull request #664 from OsmHackTW/import-sql-1.0
Browse files Browse the repository at this point in the history
Upgrade import-sql from 0.8 to 1.0
  • Loading branch information
eva-j committed Oct 31, 2019
2 parents 5ea8d9a + 2d5f424 commit e1613f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ docker-compose run import-lakelines
docker-compose run import-osmborder
```

**[Optional]**
Import latest Wikidata. If an OSM feature has [Key:wikidata](https://wiki.openstreetmap.org/wiki/Key:wikidata), OpenMapTiles check corresponding item in Wikidata and use its [labels](https://www.wikidata.org/wiki/Help:Label) for languages listed in [openmaptiles.yaml](openmaptiles.yaml). So the generated vector tiles includes multi-languages in name field.

Beware that current [Wikidata dump](https://dumps.wikimedia.org/wikidatawiki/entities/latest-all.json.gz) is more than 55GB, it takes time to download and import it. If you just want to have a quickstart on OpenMapTiles, just skip this step.

```bash
make download-wikidata
docker-compose run import-wikidata
```

[Download OpenStreetMap data extracts](http://download.geofabrik.de/) and store the PBF file in the `./data` directory.

```bash
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ services:
- ./build:/mapping
- cache:/cache
import-sql:
image: "openmaptiles/import-sql:0.8"
image: "openmaptiles/import-sql:1.0"
env_file: .env
networks:
- postgres_conn
Expand Down

0 comments on commit e1613f2

Please sign in to comment.