[Tilesathome] lowzoom - problem downloading individual tile causes death with no resume - patch
D Tucny
d at tucny.com
Mon May 28 05:16:15 BST 2007
Hi Folks,
I was playing with lowzoom yesterday... Each time I ran it, somewhere along
the way a tile would fail to download, at this point it died with an
ImageMagick error about object not being of correct type or similar when
trying to join the tiles up... So, I reran it, only to find it get to a
different point and fail again... So... I modded lowzoom.pl to improve this
in two ways... firstly, if a tile already exists in the tmp folder, don't
try to download it again (the tmp folder is cleared down at the end of a
good run), secondly if a tile fails to get downloaded for some reason, like
bad connectivity here, try again... The result is a very simple change, too
simple probably, it could loop horribly etc... but, I'll share it here for
anyone else who experiences the same problem...
-
- mirror($f1,$f2);
+
+ while (!-f $f2)
+ {
+ mirror($f1,$f2);
+ }
Hope this helps, maybe someone can think of a safer/nicer way of doing this,
maybe adding a limit to the loop etc, then maybe it could go into svn...
d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20070528/5fdecb12/attachment.html>
More information about the Tilesathome
mailing list