From 7393d88a034432df10366a06aec6c38367ec6aef Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 1 Apr 2019 22:51:55 +0800 Subject: [PATCH 1/2] Upgrade import-sql to 1.0 - Do not fail if there are no matching sql files in dir - Fixed missing table for optional wikidata import. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 478d5c0..4e6b915 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 From 2d5f4248bdb0e68a71be484844d2b1b08ba2d2f8 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 1 Sep 2019 15:20:21 +0800 Subject: [PATCH 2/2] Add description about Wikidata in README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 208f4af..233818e 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,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