Author Topic: [solved]GPX file with points every second. Too many. Need every 3s or 4s instead  (Read 495 times)

0 Members and 1 Guest are viewing this topic.

Offline Ed.KloonkTopic starter

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Do you know how to use gpsbabel to make it drop the number of points in a gpx file to a minimum time not maximum?

Target program is suffering indigestion. Needs points spaced out to 3 or 4 seconds (and drop any in between)

The position,time=x param isn't what I want.

Found this. Someone asked the same thing. Didn't provide a solution tho.
https://sourceforge.net/p/gpsbabel/mailman/gpsbabel-misc/thread/FF91E642-5E22-46BC-9BD9-15085B53DE4F%40mac.com/#msg28161398

« Last Edit: January 25, 2022, 03:45:33 am by Ed.Kloonk »
iratus parum formica
 

Offline ve7xen

  • Super Contributor
  • ***
  • Posts: 1192
  • Country: ca
    • VE7XEN Blog
Re: GPX file with points every second. Too many. Need every 3s or 4s instead
« Reply #1 on: January 25, 2022, 12:05:54 am »
The 'resample' filter was added in gpsbabel 1.8.0 released a few days ago. Not exactly what you're asking for, but allow you to reduce the sample rate by a factor (decimate).
73 de VE7XEN
He/Him
 
The following users thanked this post: Ed.Kloonk

Offline Ed.KloonkTopic starter

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: GPX file with points every second. Too many. Need every 3s or 4s instead
« Reply #2 on: January 25, 2022, 12:11:36 am »
The 'resample' filter was added in gpsbabel 1.8.0 released a few days ago. Not exactly what you're asking for, but allow you to reduce the sample rate by a factor (decimate).

Thanks. Will check it out.
iratus parum formica
 

Offline Ed.KloonkTopic starter

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: GPX file with points every second. Too many. Need every 3s or 4s instead
« Reply #3 on: January 25, 2022, 03:44:34 am »
Finally got it to do what I wanted.

I had to basically run two passes because I was using  track,fix=3d as well as the position,time=3, prolly because the input file came from a multi day, multi gpx file abomination.

New and previous version produced byte for byte outputs. v1.8.0 vs v1.7.0

For anyone who cares:
gpsbabel v1.8.0 (linux) now uses qmake and no longer ./configure && make   
https://www.gpsbabel.org/htmldoc-1.8.0/Source.html
iratus parum formica
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf