Re: [Gpsbabel-misc] Problems converting Garmin custom waypoint symbol names
Brought to you by:
robertl
From: Robert L. <rob...@gp...> - 2015-04-01 14:56:48
|
Ha. tsteven4 delivered that exact fix minutes before I did. https://code.google.com/p/gpsbabel/source/diff?spec=svn4985&r=4985&format=side&path=/trunk/gpsbabel/garmin_tables.cc On Wed, Apr 1, 2015 at 9:54 AM, Robert Lipe <rob...@gp...> wrote: > Thanx for the good description. I'm committing a fix now to > garmin_tables.cc. > > On Wed, Apr 1, 2015 at 7:26 AM, Dr Rainer Woitok <rai...@gm...> > wrote: > >> Greetings, >> >> asking GPSBabel to convert a Garmin "*.gdb" file containing waypoints >> with custom waypoint symbols, I am receiving error messages like >> >> QString::arg: Argument missing: "Custom %d" , 0 >> >> To nail the problem down, I created a test file containing just a single >> waypoint (see attachment). Here are the gory details: >> >> Garmin MapSource recently updated to 6.15.11, running on Windows Vista. >> >> GPSBabel 1.5.2, running on Windows Vista in a Cygwin terminal window. >> >> First I used MapSource to create a new file "Waypoint-Custom-0.gdb" con- >> taining a single waypoint "WP001" at approximately N0.0 E0.0, and dis- >> playing it using waypoint symbol "Custom 0". Again using MapSource I >> then created two copies of this file, "Waypoint-Custom-1.gdb" and "Way- >> point-Custom-3.gdb", containing the same waypoint but displaying it us- >> ing waypoint symbols "Custom 1" and "Custom 3", respectively: >> >> $ ls -l W*.gdb >> -rwxr-xr-x 1 Rainer none 153 2015-03-25 11:16 Waypoint-Custom-0.gdb >> -rwxr-xr-x 1 Rainer none 153 2015-03-25 11:17 Waypoint-Custom-1.gdb >> -rwxr-xr-x 1 Rainer none 153 2015-03-25 11:17 Waypoint-Custom-3.gdb >> $ >> >> As can be seen here, these three files are identical except for the byte >> at position 112 which obviously codes the waypoint symbol to be used: >> >> $ od -Ad -tx1a Waypoint-Custom-0.gdb > Waypoint-Custom-0.od >> $ od -Ad -tx1a Waypoint-Custom-1.gdb > Waypoint-Custom-1.od >> $ od -Ad -tx1a Waypoint-Custom-3.gdb > Waypoint-Custom-3.od >> $ cat Waypoint-Custom-0.od >> 0000000 4d 73 52 63 66 00 02 00 00 00 44 6d 00 1b 00 00 >> M s R c f nul stx nul nul nul D m nul esc nul nul >> 0000016 00 41 67 02 73 71 61 00 4a 61 6e 20 32 36 20 32 >> nul A g stx s q a nul J a n sp 2 6 sp 2 >> 0000032 30 31 30 00 31 31 3a 33 31 3a 30 36 00 4d 61 70 >> 0 1 0 nul 1 1 : 3 1 : 0 6 nul M a p >> 0000048 53 6f 75 72 63 65 00 56 00 00 00 57 57 50 30 30 >> S o u r c e nul V nul nul nul W W P 0 0 >> 0000064 31 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ff >> 1 nul nul nul nul nul nul nul nul nul nul del del del del del >> 0000080 ff ff ff ff ff ff ff 00 00 ff ff ff ff 0c 01 00 >> del del del del del del del nul nul del del del del ff soh nul >> 0000096 00 47 01 00 00 00 00 00 01 00 00 00 00 00 00 00 >> nul G soh nul nul nul nul nul soh nul nul nul nul nul nul nul >> 0000112 f4 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> t soh nul nul nul nul nul nul nul nul nul nul nul nul nul nul >> 0000128 00 00 00 00 00 00 00 01 3a 79 12 55 00 00 00 00 >> nul nul nul nul nul nul nul soh : y dc2 U nul nul nul nul >> 0000144 00 00 02 00 00 00 56 00 01 >> nul nul stx nul nul nul V nul soh >> 0000153 >> $ diff -du Waypoint-Custom-0.od Waypoint-Custom-1.od >> --- Waypoint-Custom-0.od 2015-03-25 12:21:31.309000000 +0100 >> +++ Waypoint-Custom-1.od 2015-03-25 12:21:43.371000000 +0100 >> @@ -12,8 +12,8 @@ >> del del del del del del del nul nul del del del del ff soh nul >> 0000096 00 47 01 00 00 00 00 00 01 00 00 00 00 00 00 00 >> nul G soh nul nul nul nul nul soh nul nul nul nul nul nul nul >> -0000112 f4 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> - t soh nul nul nul nul nul nul nul nul nul nul nul nul nul nul >> +0000112 f5 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> + u soh nul nul nul nul nul nul nul nul nul nul nul nul nul nul >> 0000128 00 00 00 00 00 00 00 01 3a 79 12 55 00 00 00 00 >> nul nul nul nul nul nul nul soh : y dc2 U nul nul nul nul >> 0000144 00 00 02 00 00 00 56 00 01 >> $ diff -du Waypoint-Custom-0.od Waypoint-Custom-3.od >> --- Waypoint-Custom-0.od 2015-03-25 12:21:31.309000000 +0100 >> +++ Waypoint-Custom-3.od 2015-03-25 12:21:47.948000000 +0100 >> @@ -12,8 +12,8 @@ >> del del del del del del del nul nul del del del del ff soh nul >> 0000096 00 47 01 00 00 00 00 00 01 00 00 00 00 00 00 00 >> nul G soh nul nul nul nul nul soh nul nul nul nul nul nul nul >> -0000112 f4 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> - t soh nul nul nul nul nul nul nul nul nul nul nul nul nul nul >> +0000112 f7 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> + w soh nul nul nul nul nul nul nul nul nul nul nul nul nul nul >> 0000128 00 00 00 00 00 00 00 01 3a 79 12 55 00 00 00 00 >> nul nul nul nul nul nul nul soh : y dc2 U nul nul nul nul >> 0000144 00 00 02 00 00 00 56 00 01 >> $ >> >> Finally, I asked GPSBabel to convert these three "*.gdb" files: >> >> $ gpsbabel -i gdb -f Waypoint-Custom-0.gdb -o gpx -F Waypoint-Custom-0.gpx >> QString::arg: Argument missing: "Custom %d" , 0 >> $ gpsbabel -i gdb -f Waypoint-Custom-1.gdb -o gpx -F Waypoint-Custom-1.gpx >> QString::arg: Argument missing: "Custom %d" , 1 >> $ gpsbabel -i gdb -f Waypoint-Custom-3.gdb -o gpx -F Waypoint-Custom-3.gpx >> QString::arg: Argument missing: "Custom %d" , 3 >> $ >> >> The target files produced by GPSBabel are identical, except for the cre- >> ation time stamps, and the waypoint symbol is "Custom %d" in all three >> cases: >> >> $ cat Waypoint-Custom-0.gpx >> <?xml version="1.0" encoding="UTF-8"?> >> <gpx version="1.0" creator="GPSBabel - http://www.gpsbabel.org" xmlns=" >> http://www.topografix.com/GPX/1/0"> >> <time>2015-03-25T10:18:56.654Z</time> >> <bounds minlat="0.000022464" minlon="0.000027409" maxlat="0.000022464" >> maxlon="0.000027409"/> >> <wpt lat="0.000022464" lon="0.000027409"> >> <time>2015-03-25T10:15:42Z</time> >> <name>WP001</name> >> <cmt>WP001</cmt> >> <desc>WP001</desc> >> <sym>Custom %d</sym> >> </wpt> >> </gpx> >> $ diff -du Waypoint-Custom-0.gpx Waypoint-Custom-1.gpx >> --- Waypoint-Custom-0.gpx 2015-03-25 11:18:56.654000000 +0100 >> +++ Waypoint-Custom-1.gpx 2015-03-25 11:19:15.996000000 +0100 >> @@ -1,6 +1,6 @@ >> <?xml version="1.0" encoding="UTF-8"?> >> <gpx version="1.0" creator="GPSBabel - http://www.gpsbabel.org" xmlns=" >> http://www.topografix.com/GPX/1/0"> >> - <time>2015-03-25T10:18:56.654Z</time> >> + <time>2015-03-25T10:19:15.996Z</time> >> <bounds minlat="0.000022464" minlon="0.000027409" maxlat="0.000022464" >> maxlon="0.000027409"/> >> <wpt lat="0.000022464" lon="0.000027409"> >> <time>2015-03-25T10:15:42Z</time> >> $ diff -du Waypoint-Custom-0.gpx Waypoint-Custom-3.gpx >> --- Waypoint-Custom-0.gpx 2015-03-25 11:18:56.654000000 +0100 >> +++ Waypoint-Custom-3.gpx 2015-03-25 11:19:26.021000000 +0100 >> @@ -1,6 +1,6 @@ >> <?xml version="1.0" encoding="UTF-8"?> >> <gpx version="1.0" creator="GPSBabel - http://www.gpsbabel.org" xmlns=" >> http://www.topografix.com/GPX/1/0"> >> - <time>2015-03-25T10:18:56.654Z</time> >> + <time>2015-03-25T10:19:26.021Z</time> >> <bounds minlat="0.000022464" minlon="0.000027409" maxlat="0.000022464" >> maxlon="0.000027409"/> >> <wpt lat="0.000022464" lon="0.000027409"> >> <time>2015-03-25T10:15:42Z</time> >> $ >> >> So it seems GPSBabel is correctly interpreting the waypoint symbol in- >> formation in the "*.gdb" file but then incorrectly calls "QString::arg" >> to turn this information into a meaningful string. Can somebody mend >> this soon, please? >> >> Sincerely, >> Rainer >> >> PS: Does the GPX syntax allow the text in a waypoint's "<sym>...</sym>" >> clause to specify a URL pointing to a "*.bmp" or "*.jpg" file to be used >> to display the corresponding waypoint (for instance via "<link href=...> >> <text>...</text></link>)? And if so, is there a way to tell GPSBabel to >> use some sort of conversion table to include such URLs in the waypoint >> specifications in a "*.gpx" file? >> >> ---------------------------------------------------------------------- >> | Rainer M Woitok | Phone : (+49 60 93) 487 95 95 | >> | Kolpingstraße 3 | Mobile: (+49 172) 813 6 831 | >> | D-63846 Laufach | Mail : Rainer.Woitok@Gmail.Com | >> | Germany | | >> ---------------------------------------------------------------------- >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Gpsbabel-misc mailing list http://www.gpsbabel.org >> Gps...@li... >> To unsubscribe, change list options, or see archives, visit: >> https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc >> >> > |