From 2f60ca0730ee8d4d373e41fe1f7dd7b797d9a121 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 21 Feb 2020 19:22:37 -0700 Subject: [PATCH] Add merge script, update imposm3 behavior info Add a one-liner script to take the tile lists from the dated subfolders, merge and deduplicate them, and write it out to tiles.txt. Also update docs to reflect current behavior of `docker-compose run update-osm`. --- UPDATE.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UPDATE.md b/UPDATE.md index 20e5afe5..f107c1ab 100644 --- a/UPDATE.md +++ b/UPDATE.md @@ -28,8 +28,12 @@ docker-compose run import-osm-diff ## Generate Changed Tiles -After the import has finished **imposm3** will store a list of tiles in text format in the `diffdir`. -Copy the as `tiles.txt` to the import folder. +After the import has finished **imposm3** will store lists of tiles in text format in subfolders of the `diffdir`, +named for the date(s) on which the import took place (`YYYYMMDD`). +Copy and merge the files to `tiles.txt` in the import folder (`data`), either manually or with the following command, which also removes duplicate tiles so they are only generated once: +``` +cd data && sort ./*/*.tiles | uniq > tiles.txt +``` Now run the command to read the tilelist and write the vector tiles for it to a new MBTiles.