Oops, that didn't work. That's what I get for trying to cleanup the error checking before posting. This version actually works.
#!/bin/sh # Look for OpenStreetMap tiles that are size zero (TangoGPS has a bug) # and download the correct tile. Based on a one-line script by # Rask Ingemann Lambertsen <r...@sygehus.dk>, June 2009, # Modified by Ben Wong to work with BusyBox's wget. cd ~/Maps/OSM || exit 1 find -size 0c -print \ | cut -c3- \ | awk ' { print "http://tile.openstreetmap.org/" $0 " -O " $0; }' \ | xargs -n3 wget -U "UpdateTiles" On Thu, Jul 23, 2009 at 12:46 PM, Ben Wong<lists.openmoko....@wongs.net> wrote: > Finally got around to trying Rask's one-liner. Thanks for posting it, > it worked great once I modified it to work with BusyBox's version of > wget. I also had to fake the UserAgent; apparently openstreetmaps.org > is no longer allowing wget. I've appended my modifications, which > should work on any system, below. > > --Ben > > #!/bin/sh > > # Look for OpenStreetMap tiles that are size zero (TangoGPS has a bug) > # and download the correct tile. Based on a one-line script by > # Rask Ingemann Lambertsen <r...@sygehus.dk>, June 2009, > # modified by Ben Wong to work with BusyBox's wget. > cd ~/Maps/OSM || echo "Cannot cd to ~/Maps/OSM" >&2 && exit 1 > find -size 0c -print \ > | cut -c3- \ > | awk ' { print "http://tile.openstreetmap.org/" $0 " -O " $0; }' \ > | xargs -n3 wget -U "UpdateTiles" > > > On Sat, Jun 27, 2009 at 3:04 AM, Rask Ingemann > Lambertsen<r...@sygehus.dk> wrote: >> Running Yaouh! didn't update the about 15 empty map tiles I had. What I >> did afterwards to update them was: >> >> $ (cd ~/Maps/OSM && find -size 0c -print) | cut -c3- | \ >> awk ' { print "http://tile.openstreetmap.org/" $0; }' | \ >> (cd ~/Maps/OSM && xargs wget --force-directories --no-host-directories -N ) >> >> -- >> Rask Ingemann Lambertsen >> Danish law requires addresses in e-mail to be logged and stored for a year >> >> _______________________________________________ >> Openmoko community mailing list >> community@lists.openmoko.org >> http://lists.openmoko.org/mailman/listinfo/community >> > _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community