Convert meta tiles names to an x,y,z notation in OpenStreetMap

المشرف العام

Administrator
طاقم الإدارة
Using mod_tile/renderd to serve OpenStreetMap tiles, I would like to list all tiles already generated in the cache but with an x, y, z notation. Currently, I only get paths for my list of *.meta files

cd /var/lib/mod_tile/ && find `pwd` -name '*.meta' |sed -e 's/\/var\/lib\/mod_tile\/default\///g' | sed -e 's/\.meta//g'The remaining problem is to convert meta tiles paths to the x, y, z notation.

I already tried to:* find an existing function using a search engine* to reverse the logic of function xyz_to_meta that do the opposite (in the Github mod_tile repository) but I'm really bad at bit manipulation (e.g the definition of the meta tiles pattern https://github.com/openstreetmap/mod_tile/blob/master/readme.txt#L62 )

Any help is appreciated (if possible Python or Bash answer as I don't want to add more packages on the server)



أكثر...
 
أعلى