Wednesday, 16 October 2013

Track segment editor

Let's suppose you recorded a track like this:

Note that the path is "broken" in 4 smaller parts. Those parts are called track segments. Every track can have multiple track segments and GPS devices will usually create a new segment every time it lost GPS satellite visibility (for example if you entered in a tunnel or  a deep canyon) or you temporarily switched it off.

But we have another problem here. When we reached the peak the batteries of our GPS discharged and that's why we don't have the return of our trip recorded. BTW, the return was the same path.

This is a typical scenario where you would use the new "Track segment editor" on Trackprofiler. When you click on the "segment editor" tab you will see the map with numbered segments and on the right the list with all possible operations on single segments:

By selecting the drop-down with the number you can change the segment order in your GPS file. Use  to reverse the order of points inside that segment. With  you can duplicate the segment or delete it with .

Use  to join two segments.

Now back to our problematic track. We need to:
  • Join all our segments using ,
  • copy the resulting segment with ,
  • reverse the points on the second segment (the returning path) with ,
  • join them together with .
...and the result will be the complete path without "holes":

The Track segment editor is online now

Feedback is welcome!

Tuesday, 8 October 2013

Geoelevations for Ruby

WGS84 Undulations map of the Earth

Just released another open source project related to Trackprofiler. Geoelevations.rb is a SRTM and EGM2008 undulations parser library for Ruby:
Geoelevations.rb is a SRTM and EGM2008 undulations parser library for ruby. Geoelevation.rb allows you to retrieve the elevation for any point in Earth (if present in the SRTM dataset) and the Geoid undulation (the difference between the WGS84 ellipsoid and the actual Earth size). 
SRTM: "The Shuttle Radar Topography Mission (SRTM) obtained elevation data on a near-global scale to generate the most complete high-resolution digital topographic database of Earth." 
EGM2008: "The official Earth Gravitational Model EGM2008". Part of this dataset is a "geoid undulation values with respect to WGS 84".
Basically it is simillar to the existing Python SRTM library (used in Trackprofiler to add elevations to GPS tracks) with two differences:
Geoelevations.rb is hosted here: