openmaptiles-tools icon indicating copy to clipboard operation
openmaptiles-tools copied to clipboard

Updating tiles other than zoom=14

Open ingarpedersen opened this issue 5 years ago • 1 comments

I'm a bit confused about the diff update process. I have a database up and running, and I'm running a diff update. This update results in a file that lists all tiles that is affected by the update, but only at zoom=14. How do I get a list of all tiles that needs to be updated at all zoom levels? I have verified that a change (a new road) was missing at zoom 12 but became visible on zoom=14. If I run full tile generation, the change is visible at zoom=12.

Thanks Ingar F Pedersen

ingarpedersen avatar Jun 03 '20 10:06 ingarpedersen

When running diff update, imposm creates a list of tiles, in zoom14, that need to be updated, while the tile generation accepts a list tiles to be generated in all relevant zoom levels. The expansion of the list to all zoom levels between MIN_ZOOM and MAX_ZOOM can be done using @frodrigo's tile_multiplier.py

The conversion could be done this way:

find ./data -name "*.tiles" -exec cat {} \; -exec rm {} \; | \
    tile_multiplier.py $(MIN_ZOOM) $(MAX_ZOOM) > data/tiles.txt

zstadler avatar Feb 25 '22 08:02 zstadler