Skip to main content
Question

Interpolation of GPX GPS log


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

roland.martin
Forum|alt.badge.img+9
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!

david_r
Celebrity
  • November 10, 2015
Hi

 

 

Also look at the Densifier transformer.

 

 

David

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings