+huskerrich2000 Posted December 19, 2006 Share Posted December 19, 2006 I am not yet a premium member yet, howver that will change soon. I operate in a linux enviorment. I am curious to know if GPSBabel will work the same as GPXSpinner for my organizing program. I know Plucker does have a linux option already. Quote Link to comment
robertlipe Posted December 19, 2006 Share Posted December 19, 2006 GPSBabel does run under Linux and can read PQ's and write them in a variety of formats that can be used on PDA-like substances. Since you reference Plucker, we deduce you're interested in Palm/OS units. We can write HTML (which can be fed to plucker) text, and palmdoc. Quote Link to comment
+fratermus Posted December 19, 2006 Share Posted December 19, 2006 I am not yet a premium member yet, howver that will change soon. I operate in a linux enviorment. I am curious to know if GPSBabel will work the same as GPXSpinner for my organizing program. I know Plucker does have a linux option already. Here's how I do it on my debian/linux box: ==This is all in a shell script== unzip the various queries process the PQ .gpx files with gpx2html thereby combining into one file (.loc unfortunately) and generating the .html indicies gpsbabel to convert from .loc to .gpx if desired sunrise (used to use plucker) to do .html --> palm sync to the treo. ===end=== This might look like a bunch of work to windoze folks, but it is scripted/cronjobbed so all I do on my end is press the sync button on the palm cord. Quote Link to comment
+Bilbowolf Posted December 19, 2006 Share Posted December 19, 2006 Have a look at this: CacheWolf: https://developer.berlios.de/project/showfi...p?group_id=2211 Quote Link to comment
+ac7ss Posted January 9, 2007 Share Posted January 9, 2007 (edited) I use GPSDrive, Mysql, a Lawrence iFinder Go, and a cable... The shell script has a bunch of lines like this ---- gpsbabel -i gpx -f 853345.gpx -o gpsdrive -F - |awk '{print "insert into waypoints \ (name,lat,lon,type) values (\"ST-" $1 "\",\"" $2 "\",\"" $3 "\",\"" $4 "\");" }' >>wp.sql gpsbabel -i gpx -f 853345.gpx -o html -F ~/Desktop/Geo-Sea-Tac.html gpsbabel -i gpx -f 853345.gpx -o nmea -F - >>nmea.out ---- and then, it sends the wp.sql to the mysql server, the nmea.out to the term program, and that's it! GPSDrive shows the caches nearby, (the cache is prefixed with a W, H, ST etc. to show which html file to look in.) At last count I am uploading about 600 waypoints to my GPSr so that I can detach and walk to the cache. Correction, 700. Edited January 9, 2007 by ac7ss Quote Link to comment
+ac7ss Posted January 12, 2007 Share Posted January 12, 2007 Well, I read the docs, and shortened the script... --- gpsbabel -i gpx -f 499776.gpx -f 553854.gpx -f 853345.gpx -f 853350.gpx \ -x duplicate,location,shortname\ -x sort,shortname\ -o gpx -F merged_with_no_dupes.gpx gpsbabel -i gpx -f merged_with_no_dupes.gpx -o gpsdrive -F - |awk '{print "insert into waypoints \ (name,lat,lon,type) values (\"" $1 "\",\"" $2 "\",\"" $3 "\",\"" $4 "\");" }' >>wp.sql gpsbabel -i gpx -f merged_with_no_dupes.gpx -o html -F ~/Desktop/geocache.html \ -o nmea -F nmea.out --- I use GPSDrive, Mysql, a Lawrence iFinder Go, and a cable... The shell script has a bunch of lines like this ---- gpsbabel -i gpx -f 853345.gpx -o gpsdrive -F - |awk '{print "insert into waypoints \ (name,lat,lon,type) values (\"ST-" $1 "\",\"" $2 "\",\"" $3 "\",\"" $4 "\");" }' >>wp.sql gpsbabel -i gpx -f 853345.gpx -o html -F ~/Desktop/Geo-Sea-Tac.html gpsbabel -i gpx -f 853345.gpx -o nmea -F - >>nmea.out ---- Quote Link to comment
robertlipe Posted January 12, 2007 Share Posted January 12, 2007 It could be shorter still. :-) Just like you can specify multiple inputs, you can specify multiple outputs. -x sort ... \ -o html -F ~/Desktop/geocache.html \ -o nmea -F nmea.out \ -o gpsdrive -F - |awk ... If you actually do need the merged_with_no_dupes.gpx, you can throw it in there too, but there's really no reason to keep rereading it. Quote Link to comment
+ac7ss Posted January 14, 2007 Share Posted January 14, 2007 thats what happens when scripts evolve. I still had the nmea as a pipe. I could even make this an alias now. (Ok I could before.) Is there a way to script the equivalent to gpsdrive -f *.gpx ... I am still learning scripts... It could be shorter still. :-) Just like you can specify multiple inputs, you can specify multiple outputs. -x sort ... \ -o html -F ~/Desktop/geocache.html \ -o nmea -F nmea.out \ -o gpsdrive -F - |awk ... If you actually do need the merged_with_no_dupes.gpx, you can throw it in there too, but there's really no reason to keep rereading it. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.