This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to split up osm 8x8 meta file into 64 single tiles

3

I use tirex/renderd together with mapnik to generate a custom styled OSM map. This results in meta files like /var/lib/tirex/tiles/mapnik/4/0/0/0/0/128.meta consisting of 8x8 single tiles. These files are normally delivered by apache's mod_tile. My problem is that I do not have mod_tile available on the production server.

I there a way to generate the normal single /z/x/y.png files from these meta files, so that the OSM map can be delivered by just any normal http server? Say, either as part of tirex or mapnik, or as a post rendering script or similar?

asked 10 Mar '15, 10:56

jnachtigall's gravatar image

jnachtigall
101448
accept rate: 0%


One Answer:

4

Not having mod_tile available means that you will have to generate all tiles beforehand. You could do that by running mod_tile on a different server and then using a tile downloader to download PNG tiles from your server, or you could make metatiles and then use meta2tile to convert to PNG. Be careful with the huge numbers of files this may create though - on file systems with a large block size having so many files can easily fill up your disk.

answered 10 Mar '15, 13:15

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

... and many numbers of small tiles can also exhaust the available inodes too (depending on the filesystem you're using).

(03 Jun '16, 15:14) SomeoneElse ♦

Source code available on GitHub .