Uh oh!
There was an error while loading. Please reload this page.
mapcache_seed hangs in extract mode if it encounters zoom levels with no tiles - #42
mapcache_seed hangs in extract mode if it encounters zoom levels with no tiles#42tbonfort wants to merge 3 commits into
Conversation
tbonfort
commented
Aug 20, 2012
@aboudreault, this pull request is a proposed change to avoid hanging the seed process. It does not fix the underlying issue at hand which makes the transfer fail if either the source or destination are missing a |
if a tile is not present in the source tileset, silently skip it instead of having it rendered by the source.
tbonfort
commented
Aug 20, 2012
The previous patch skips absent tiles from the transfer mode completely. I would propose we adopt it as it solves the issues related to tilesets with no |
We've been using mapcache_seed to create small subsets of large caches using the extract mode. It seems that if it encounters a zoom level in the source cache that doesn't have tiles, it hangs.
Our process is like this:
Seed tileset "test" to level 17 in an mbtiles cache (not sure if cache type matters, probably not):
mapcache_seed -c mapcache.xml -t test -g g -z 0,17 -n 4 -d /mnt/map/data/other/aoi.shp -l aoi
Move test.db to a server that only serves tiles, doesn't create them.
Transfer test to test2 (also mbtiles) for a given bbox. Mapcache.xml used for transferring doesn't have a source mapfile for either "test" or "test2" as we don't want this server to render tiles:
mapcache_seed -c mapcache.xml -t test2 -g g -z 0,16 -n 4 -m transfer -x test -e -8595344.000000,5583572.000000,-8554068.000000,5624848.000000
In the case of our source (i.e. "test" tileset) was generated for a restricted area and the bbox for the transfer includes areas that are not within aoi.shp. Therefore at some zoom level, there were no tiles generated for parts of the bbox.
The error that was returned by mapcache_seed was: mbtiles backend failed on image set: SQL logic error or missing database (1)