[Tilesathome] Lowzoom bug?

Alan Millar am12 at bolis.com
Wed May 28 00:11:19 BST 2008


I think I found a bug in the lowzoom downloader.  If your predicates
entry in  layers.conf has spaces in it, and the default one does,
then the urls to download will be mangled, and it will attempt
to download all nodes in existence.

Here's the patch that fixed it for me:

Index: tilesGen.pl
===================================================================
--- tilesGen.pl (revision 7975)
+++ tilesGen.pl (working copy)
@@ -722,6 +722,8 @@
         
         # Get the predicates for lowzoom, and build the URLS for them
         my $predicates = $Config->get($Layers."_Predicates");
+       # strip spaces in predicates because that is the separator used 
below
+       $predicates =~ s/\s+//g;
         $URLS="";
         foreach my $predicate (split(/,/,$predicates)) {
             $URLS = $URLS . sprintf("%s%s/%s[bbox=%s] ",
===================================================================

Anyone want to double-check this?  Thanks

- Alan




More information about the Tilesathome mailing list