GPSBabel / gpsbabel

GPSBabel: convert, manipulate, and transfer data from GPS programs or GPS receivers. Open Source and supported on MacOS, Windows, Linux, and more. Pointy clicky GUI or a command line version...
https://www.gpsbabel.org
GNU General Public License v2.0
478 stars 127 forks source link

GPX to Naviguide returns an empty file #81

Closed HarelM closed 7 years ago

HarelM commented 7 years ago

Running the following command line returns an empty file (0 bytes) - exit code 0:

gpsbabel.exe -N -i gpx,gpxver=1.1 -f "C:\Users\xxx\AppData\Local\Temp\tmp3C12.tmp" -o naviguide -F "C:\Users\xxx\AppData\Local\Temp\tmp3C22.tmp"

Here's the relevant input file. מסלול 1.txt

Running on Windows 10. GPSBabel doesn't have a version in the file so it's dated from 02-jan-2016 (worth adding a version to the file...)

GPSBabelDeveloper commented 7 years ago

Your inputs are tracks. Our naviguide format supports only waypoints according to https://www.gpsbabel.org/capabilities.html

You could convert the tracks to waypoint, but I don't know how well that'll work on the device or progra

1.5.4 was from New Year this year, but I really don't think we've had any non-mechanical changes in that format in years. I don't know that we have a lot of Naviguide users on the dev team as it seemed to be of regional interest. Perhaps post to gpsbabel-misc may turn up more.

On Sun, Aug 20, 2017 at 2:50 PM, Harel M notifications@github.com wrote:

Running the following command line returns an empty file (0 bytes) - exit code 0:

gpsbabel.exe -N -i gpx,gpxver=1.1 -f "C:\Users\xxx\AppData\Local\Temp\tmp3C12.tmp" -o naviguide -F "C:\Users\xxx\AppData\Local\Temp\tmp3C22.tmp"

Here's the relevant input file. מסלול 1.txt https://github.com/gpsbabel/gpsbabel/files/1237311/1.txt

Running on Windows 10. GPSBabel doesn't have a version in the file so it's dated from 02-jan-2016 (worth adding a version to the file...)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gpsbabel/gpsbabel/issues/81, or mute the thread https://github.com/notifications/unsubscribe-auth/ALdQD4k9XEzR994E57Xa_1lnx4rdIMF1ks5saI4hgaJpZM4O8tfK .

HarelM commented 7 years ago

Thanks for the super fast response! A user posted on our facebook group that he was unable to export in naviguide format and I now remember that we only imported this format up until now. I'll try with Waypoints never-the-less.

tsteven4 commented 7 years ago

This will produce a non-empty file with 1078 points from your sample input.  the gpxver option you used is used on write, not read, so it is unnecessary.

./gpsbabel -N -i gpx -f  1.gpx -x transform,wpt=trk -o naviguide -F 2.twl

On 8/20/2017 2:38 PM, Harel M wrote:

Thanks for the super fast response! A user posted on our facebook group that he was unable to export in naviguide format and I now remember that we only imported this format up until now. I'll try with Waypoints never-the-less.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gpsbabel/gpsbabel/issues/81#issuecomment-323610472, or mute the thread https://github.com/notifications/unsubscribe-auth/AM92MemPzqMkwHZGGzc-dct-F7F--82Eks5saJlZgaJpZM4O8tfK.

HarelM commented 7 years ago

The syntax is confusing but I'm sure you know what you are talking about :-) Thanks!! Not sure I'll use it as I prefer to manipulate the data before passing it to GPSBabel, but it sure can be useful.

robertlipe commented 7 years ago

From the department of Stupid GPSBabel Tricks, one of the things I do a lot is feed our own output back to us. (Please don't think too much about naming that...) It won't prove that our output can be read by whatever, but it can prove that at least our reader and writers are consistent with each other.

For example:

gpsbabel -t -i gpx -f ~/Downloads/1.txt -xtransform,wpt=trk -o naviguide -F

produces a GPX output that ends in:

<rtept lat="33.114657888" lon="35.556019305">
  <ele>0.000000</ele>
  <name>WPT1078</name>
  <cmt>WPT1078</cmt>
  <desc>WPT1078</desc>
</rtept>

..and 1078 happens to be exactly the number that tsteven4 offered. Taa Daa!

And, yes, we do have some confusing and inconsistent tricks in our toolbox. For example, "m" means "meters" if the author wasn't American, then it usually means "miles".

Steven does indeed know what he's talking about. He's been a HUGE help inside the guts of GPSBabel in recent years.

On Sun, Aug 20, 2017 at 3:42 PM, tsteven4 notifications@github.com wrote:

This will produce a non-empty file with 1078 points from your sample input. the gpxver option you used is used on write, not read, so it is unnecessary.

./gpsbabel -N -i gpx -f 1.gpx -x transform,wpt=trk -o naviguide -F 2.twl

On 8/20/2017 2:38 PM, Harel M wrote:

Thanks for the super fast response! A user posted on our facebook group that he was unable to export in naviguide format and I now remember that we only imported this format up until now. I'll try with Waypoints never-the-less.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gpsbabel/gpsbabel/issues/81#issuecomment-323610472,

or mute the thread https://github.com/notifications/unsubscribe- auth/AM92MemPzqMkwHZGGzc-dct-F7F--82Eks5saJlZgaJpZM4O8tfK.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gpsbabel/gpsbabel/issues/81#issuecomment-323610699, or mute the thread https://github.com/notifications/unsubscribe-auth/AIUh7zimCCiK_NS5YC1tyGuEuQ21r0YRks5saJovgaJpZM4O8tfK .