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`.
pull/795/head
Skylar Ittner 2020-02-21 19:22:37 -07:00 zatwierdzone przez Yuri Astrakhan
rodzic 2edbbfa1a0
commit 2f60ca0730
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -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.