[OSM-dev] patch: generate_tiles.py

Armijn Hemel armijn at uulug.nl
Thu Jan 3 18:46:56 GMT 2008


hi,

attached a patch which should provide some optimizations for
generate_tiles.py. Basically, it moves the checks if directories exist
per zoomlevel outside the actual tile rendering loop. This will only
check once per zoomlevel if the directory for that zoomlevel exists,
instead of up to several million times (depending on how many tiles you
generate of course :-P)

armijn

-- 
---------------------------------------------------------------------------
 armijn at uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
---------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapnik.patch
Type: text/x-patch
Size: 1598 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080103/86db4dc6/attachment.bin>


More information about the dev mailing list