Re: [Om2008.9] updating OSM data for tangoGPS
El día Thursday, February 05, 2009 a las 01:48:20PM +0100, Stefan Fröbe escribió: > Hi Matthias, > > neat little script for this great idea - I cleaned the output a little, > added a simple "progress" and updated a tile's timestamp when it was checked > sucessfully - now all that's needed is a little parallel wget to speed > things up ;-) parallel wget is an easy one; just modify the script that it can run parallel (i.e. have the file lastrun the number of magnification 2-17 appended) and fire up the script for each of the magnifications; hey , it's UNIX :-) matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Om2008.9] updating OSM data for tangoGPS
El día Thursday, February 05, 2009 a las 01:48:20PM +0100, Stefan Fröbe escribió: > > > > My script as well honours the existence of a file '.../OSM/lastrun' and one > > can just create this file with > > > > $ touch -t 02050724 lastrun ## MMDDHHMM > > > > to exclude, in this example, all tiles which are already newer then > > February 5, 7:24; > > for example if you have to restart the script during a day; > > > Hi Matthias, > > neat little script for this great idea - I cleaned the output a little, > added a simple "progress" and updated a tile's timestamp when it was checked > sucessfully - now all that's needed is a little parallel wget to speed > things up ;-) > > Stefan Hi Stephan, Thanks for updating it (I have no time to check it now, will come back later to this); just a note; I did already a change in my CVS because sometimes the wget fails and let the file with zero bytes, i.e. it is better to let in this case the old file remain; the logic is like this: wget --user-agent yaouh.sh -q ${baseURL}${file} -O /tmp/tile.$$ test -s /tmp/tile.$$ && { cat /tmp/tile.$$ > ${file} printf "updated\n" } HIH matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Om2008.9] updating OSM data for tangoGPS
> > My script as well honours the existence of a file '.../OSM/lastrun' and one > can just create this file with > > $ touch -t 02050724 lastrun ## MMDDHHMM > > to exclude, in this example, all tiles which are already newer then > February 5, 7:24; > for example if you have to restart the script during a day; Hi Matthias, neat little script for this great idea - I cleaned the output a little, added a simple "progress" and updated a tile's timestamp when it was checked sucessfully - now all that's needed is a little parallel wget to speed things up ;-) Stefan yaouh.sh Description: Bourne shell script ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Om2008.9] updating OSM data for tangoGPS
El día Wednesday, February 04, 2009 a las 10:11:05PM +0100, Thomas Franck escribió: > Matthias Apitz wrote: > > it seems that the logic depends on certain http://... values in > > ~/.gconf/apps/tangogps/%gconf.xml > > but I don't have that their; could someone show me the string how it > > should look in tangogps/%gconf.xml to understand what it is expecting; > > Ahh.. that would be the way osm organizes their maps and where TangoGPS > puts them > > > > > OSM|http://tile.openstreetmap.org/%d/%d/%d.png|/media/card/maps/osm|0 > > Thanks for the info, Thomas. It's interesting, my file ~/.gconf/apps/tangogps/%gconf.xml in my laptop and in the FR has only the value OSM and tangoGPS is happy; maybe the rest are hardcoded defaults in tangoGPS; As I said, I have my maps in my FreeBSD based laptop and syncing them over with 'rsync' to another netbook and to the FR. If someone owns a laptop I think this is the right way todo because the update takes its time (around half hour for 2000 tiles) and if you have like me some 12000 tiles it will take many hours. Thats why as well I dropped the Python Gtk tool yaouh0.3_alpha.py and wrote my own one just as a command line shell script (attached as yaouh.sh); in any case thanks to the original author of Yaouh for the idea. My script as well honours the existence of a file '.../OSM/lastrun' and one can just create this file with $ touch -t 02050724 lastrun ## MMDDHHMM to exclude, in this example, all tiles which are already newer then February 5, 7:24; for example if you have to restart the script during a day; HIH matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ yaouh.sh Description: Bourne shell script ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Om2008.9] updating OSM data for tangoGPS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias Apitz wrote: > it seems that the logic depends on certain http://... values in > ~/.gconf/apps/tangogps/%gconf.xml > but I don't have that their; could someone show me the string how it > should look in tangogps/%gconf.xml to understand what it is expecting; Ahh.. that would be the way osm organizes their maps and where TangoGPS puts them OSM|http://tile.openstreetmap.org/%d/%d/%d.png|/media/card/maps/osm|0 This is the snippet you need.. HTH (beware of linebreaks) Cheers, - -- Thomas - -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Brilliance is typically the act of an individual, but incredible stupidity can usually be traced to an organization. - Jon Bentley - -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmKBGkACgkQJyAl4leVARmuRwCeMBsbr4qWDA4/WBNhqQ6sBoE9 8jsAn2lGjng4BTFd5ANbJrCZJ33ABzM2 =gHGc -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Om2008.9] updating OSM data for tangoGPS
El día Wednesday, February 04, 2009 a las 05:34:26PM +0100, Thomas Franck escribió: > > Some weeks ago there was a discussion about an application which updated > > (crawled) your local installed OSM data... what is the state now of > > this, is it ready for use (there have been bugs, if I remember > > correctly); thx > > I found Yaouh[1] to do a nice job for my TangoGPS.. :) still kinda slow, > but at least I had no major problems.. > > [1] http://wiki.openmoko.org/wiki/Yaouh I have fetched the source from http://www.logic.at/people/kelvan/python/yaouh0.3_alpha.py because I will run it on my laptop where I have the master place for the OSM maps; it seems that the logic depends on certain http://... values in ~/.gconf/apps/tangogps/%gconf.xml but I don't have that their; could someone show me the string how it should look in tangogps/%gconf.xml to understand what it is expecting; Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Om2008.9] updating OSM data for tangoGPS
> Some weeks ago there was a discussion about an application which updated > (crawled) your local installed OSM data... what is the state now of > this, is it ready for use (there have been bugs, if I remember > correctly); thx I found Yaouh[1] to do a nice job for my TangoGPS.. :) still kinda slow, but at least I had no major problems.. [1] http://wiki.openmoko.org/wiki/Yaouh -- Thomas -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Computers are useless. They can only give you answers. - Pablo Picasso (1881-1973) -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[Om2008.9] updating OSM data for tangoGPS
Hello, Some weeks ago there was a discussion about an application which updated (crawled) your local installed OSM data... what is the state now of this, is it ready for use (there have been bugs, if I remember correctly); thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community