NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

accept rate: 0%

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.

permanent link

answered 10 Mar '15, 13:15

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
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 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 10 Mar '15, 10:56

question was seen: 4,802 times

last updated: 03 Jun '16, 15:14

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum