jorgesca / garmintools

Automatically exported from code.google.com/p/garmintools
GNU General Public License v2.0
0 stars 1 forks source link

garmin_gpx generates routes when it should be tracks #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Pull data from GPS using garmin_save_runs
2. Generate GPX file using garmin_gpx
3. Load said GPX in ex. JOSM (http://josm.openstreetmap.de)

(If data is pulled from GPS using gpsbabel, directly to GPX, the file works 
fine - but all runs are in one file...)

What is the expected output? What do you see instead?
The track should be displayed as a dotted line on the map. Instead nothing is 
shown, except that JOSM zooms to the correct 
bounding box.

What version of the product are you using? On what operating system?
Ubuntu Linux 9.04, garmin-forerunner-tools 0.09-2ubuntu1

Please provide any additional information below.
From issue 16, I've created a slice of XML data for the two different outputs:

Directly from device using gpsbabel:

  ...
  <trkpt lat="55.673035383" lon="12.572800443">
    <ele>1.579346</ele>
    <time>2009-08-21T09:45:12Z</time>
  </trkpt>
  ...

From garmin_gpx:

  ...
  <rtept lat="55.673035000" lon="12.572801000">
    <ele>1.579346</ele>
    <time>2009-08-21T09:45:12Z</time>
    <name>RPT001</name>
  </rtept>
  ...

Original issue reported on code.google.com by msieb...@gmail.com on 22 Aug 2009 at 9:15

GoogleCodeExporter commented 9 years ago
I've had-edited a file from the garmin_gpx output structure - which is about 
this:

  <gpx>
    <rte>
       <rtept />
       ...
    </rte>
  </gpx>

Using some search/replace and adding a single pair of tags to achieve

  <gpx>
    <trk>
      <name>...</name>
      <trkseg>
        <trkpt />
        ...
      </trkseg>
    </trk>
  </gpx>

Makes it work just fine in at least JOSM.

Original comment by msieb...@gmail.com on 22 Aug 2009 at 9:27

GoogleCodeExporter commented 9 years ago
The attached patch (applies to SVN trunk) fixes this.

  - Changes all "rte" and "rtept" to "trk" and "trkpt", respectively.
  - Inserts "trkseg" tags around the tracks.

Original comment by msieb...@gmail.com on 22 Aug 2009 at 9:43

Attachments:

GoogleCodeExporter commented 9 years ago
Patch in issue 15 does this, and then some, including named points for JOSM.

Original comment by tuomo.ko...@gmail.com on 29 Jan 2010 at 8:47

GoogleCodeExporter commented 9 years ago
Cool! I just didn't see any mention of that in the comments for the bug.

Original comment by msieb...@gmail.com on 29 Jan 2010 at 9:37