mod_tile/renderd to serve OpenStreetMap tiles, I would like to list all tiles already generated in the cache but with an
z, x, y notation. Currently, I only get paths for my list of
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
z, x, y notation.
I already tried to:
- find an existing Python function using a search engine
- to reverse the logic of function
xyz_to_metathat do the opposite (in the Github
mod_tilerepository) but I'm really bad at bit manipulation (e.g the definition of the meta tiles pattern )
- convert this available C code to Python
Python or Bash answers are preferred because I don't want to add more packages on the server.