Calculate number of tiles to produce

37 views
Skip to first unread message

Alessandro Candini

unread,
Jan 23, 2012, 9:51:37 AM1/23/12
to mapnik
Hi list.
I succesfully use generate_tiles.py script and I wonder if it's
possible to calculate at the very beginning of its execution the total
number of tiles that the scrpt is going to produce.

For example on a shapefile of Salzburg, I have customized the script
with the following parameters:
minZoom = 12
maxZoom = 18
bbox = (12.96524048, 47.77163739, 13.06549072, 47.81684332)
and I saw that it produces 5000 tiles.

How can I use these parameters to calculate the number 5000?

Thanks in advance

Andrew Harvey

unread,
Jan 25, 2012, 4:26:09 AM1/25/12
to map...@googlegroups.com
Hmm I calculate 4925 via https://gist.github.com/1675606
Reply all
Reply to author
Forward
0 new messages