[OSM-dev] render_expired deletes incorrect tile meta files
Евгений Фарфель
jenfa at jenfa.od.ua
Wed Feb 8 11:57:15 GMT 2012
Hi, all!
I am using osm2pgsql with render_expired to invalidate mod_tile cache.
My shell script is as follows:
osmosis -q --read-replication-interval
workingDirectory=/srv/osmosis-replication/.osmosis --simplify-change -
--write-xml-change file="-" | osm2pgsql -a -s -H localhost -U
openstreetmap -d zab_mapnik -S /usr/share/osm2pgsql/default.style
--cache 128 -e10 -o /tmp/expire.lst -;
cat /tmp/expire.lst | render_expired --map=default --min-zoom=10
--delete-from=10 --max-zoom=18
osm2pgsql creates a following expire.lst:
$ cat /tmp/expire.lst
10/845/348
render_expired displays a following ouput:
read: x=845 y=348 z=10
process: x=216320 y=89088 z=18
not on disk: /var/lib/mod_tile/default/18/49/69/220/0/0.meta
process: x=108160 y=44544 z=17
not on disk: /var/lib/mod_tile/default/17/16/170/110/128/0.meta
process: x=54080 y=22272 z=16
not on disk: /var/lib/mod_tile/default/16/0/213/55/64/0.meta
process: x=27040 y=11136 z=15
not on disk: /var/lib/mod_tile/default/15/0/98/155/168/0.meta
process: x=13520 y=5568 z=14
not on disk: /var/lib/mod_tile/default/14/0/49/69/220/0.meta
process: x=6760 y=2784 z=13
not on disk: /var/lib/mod_tile/default/13/0/16/170/110/128.meta
process: x=3380 y=1392 z=12
not on disk: /var/lib/mod_tile/default/12/0/0/213/55/0.meta
process: x=1690 y=696 z=11
not on disk: /var/lib/mod_tile/default/11/0/0/98/155/136.meta
process: x=845 y=348 z=10
not on disk: /var/lib/mod_tile/default/10/0/0/49/69/136.meta
read: x=422 y=174 z=9
Total for all tiles rendered
Meta tiles rendered: Rendered 0 tiles in 0.00 seconds (0.00 tiles/s)
Total tiles rendered: Rendered 0 tiles in 0.00 seconds (0.00 tiles/s)
Total tiles in input: 1
Total tiles expanded from input: 9
Total meta tiles deleted: 0
Total meta tiles touched: 0
Total tiles ignored (not on disk): 9
It looks like it tries to invalidate a tile file with name
/var/lib/mod_tile/default/18/49/69/220/0/0.meta, however, the correct
name for this tile is
/var/lib/mod_tile/default/18/49/69/220/204/136.meta (I am
experimenting with a single tile, so it's the only one in
/var/lib/mod_tile/ directory).
What can be a cause of this problem and how can I fix this?
More information about the dev
mailing list