Why not ask your question on the new OpenStreetMap Community Forum?

I have a tile server based on tirex, postgres and mapnik. All metatiles are in /var/lib/tirex/tiles/. How can I get statistics on how many of the metatiles for a certain zoomlevel have been (pre)rendered, and how many are missing?

I use tirex-batch to prerender most tiles and want to make sure I do not miss any tiles accidentically.

asked 29 Apr '15, 14:12

jnachtigall's gravatar image

accept rate: 0%

If your use case is "find missing tiles, and pre-render them", then you can do

tirex-batch -f not-exists map=mymap bbox=-180,-90,180,90 z=0-12

or something like it; the -f not-exists only adds those tiles to the queue that don't already exist.

If you just want to know how many are missing, you can do a

for i in `seq 3 12`
   echo -n $i:
   find /my/tile/dir/$i -type f -name \*meta |wc -l 

You'd expect to see 4**(z-3) meta tiles on each zoom level fully rendered.

permanent link

answered 29 Apr '15, 14:55

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Your answer
toggle preview

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](http://url.com/ "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: 29 Apr '15, 14:12

question was seen: 3,403 times

last updated: 29 Apr '15, 14:55

powered by OSQA