Skip to main content
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
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!
Hi

 

 

Also look at the Densifier transformer.

 

 

David

Reply