Open ftilmann opened 6 years ago
Ok, I realise the arc filter works on waypoints not tracks. So the following solved my problem:
gpsbabel -i gpx -f trip_all.gpx -x transform,wpt=trk,del -x arc,file=tracciato-blue.arc,distance=0.015K -x transform,trk=wpt,del -o gpx -F trip_loop.gpx
I suggest to amend the examples in the documentation for this use case, as this is not obvious to the casual user of gpsbabel. I also noted the "trk" option of the "arc" filter but its usage is not clearly described and I could not figure out how to use it. The issue can essentially be closed, except for a request for documentation improvement.
Hi, I just came across the "arc filter works on waypoints not tracks" problem, too. +1 to please make this more clear in the documentation.
I am trying to use the arc filter like this:
gpsbabel -i gpx -f trip_all.gpx -x arc,file=tracciato-blue.arc,distance=0.015K -o gpx -F trip_loop.gpx
to obtain all gpx trackpoints near tracciato-blue.arc. However, the output file here is identical to the input file - no selection seems to take place. If I use arc files for input and output it works as expected:gpsbabel -i arc -f trip_all.arc -x arc,file=tracciato-blue.arc,distance=0.015K -o arc -F trip_loop.arc
(obviously after having converted the input file to arc format). However, this loses the time stamp and elevation from the track points, which I absolutely need for my use case. Am I doing something wrong? Are there any workarounds, e.g. another format preserving time stamps and working with the arc filter.I only paste small excerpts of the files to show the format. Probably enough to reproduce partially, as the output should be empty. Let me know if you need full files.
tracciato-blue.arc:
trip_all.gpx: