Question

Interpolation of GPX GPS log

  • 9 November 2015
  • 2 replies
  • 5 views

Hi,

 

 

How can I interpolate a GPX track? TrackPoints were logged every 2 seconds, exceptionally every second. For my application I need 1Hz. So I want to interpolate xy coordinates to every second.

 

 

 

 

 

1

2 replies

Badge +7
It's a little bit convoluted, but this is how I've done it before (this is from memory, so apologies for any transformer name mismatches!)

 

1. Parse timestamps - use a DateFormatter to convert to seconds since epoch (%s)

 

2. Set timestamps as measure (MeasureSetter)

 

3. Create line features (LineJoiner)

 

4. Snip at 1 second intervals (Snipper)

 

 

This should get you most of the way - post again if you get stuck!
Userlevel 4
Hi

 

 

Also look at the Densifier transformer.

 

 

David

Reply