RouteConverter Forum
RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - Printable Version

+- RouteConverter Forum (https://forum.routeconverter.com)
+-- Forum: Users (https://forum.routeconverter.com/forum-17.html)
+--- Forum: English: Discussions (https://forum.routeconverter.com/forum-12.html)
+--- Thread: RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. (/thread-1603.html)



RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - Ciryaher - 01.07.2013

I might have found a bug, but not sure. You can check it out.

I have a *.gpx file with heart rate data in every trackpoint from my Garmin GPS:
Code:
<trkpt lat="68.447035" lon="15.043464"> <ele>24.7</ele> <time>2013-06-29T06:10:58.000Z</time> <name>Position 1873</name> <extensions> <gpxtpx:TrackPointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3"> <gpxtpx:hr>130</gpxtpx:hr> </gpxtpx:TrackPointExtension> </extensions> </trkpt> <trkpt lat="68.447088" lon="15.043741"> <ele>25.1</ele> <time>2013-06-29T06:11:00.000Z</time> <name>Position 1874</name> <extensions> <gpxtpx:TrackPointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3"> <gpxtpx:hr>130</gpxtpx:hr> </gpxtpx:TrackPointExtension> </extensions> </trkpt>


I open, edit and save this file in Routeconverter (Release 2.9 from 27. May '13) as a "Training Centre Database X (*.tcx)" file. Everything is ok at this point:
Code:
<Trackpoint> <Time>2013-06-29T06:10:58.000Z</Time> <Position> <LatitudeDegrees>68.447035</LatitudeDegrees> <LongitudeDegrees>15.043464</LongitudeDegrees> </Position> <AltitudeMeters>24.7</AltitudeMeters> <DistanceMeters>0.0</DistanceMeters> <HeartRateBpm> <Value>130</Value> </HeartRateBpm> </Trackpoint> <Trackpoint> <Time>2013-06-29T06:11:00.000Z</Time> <Position> <LatitudeDegrees>68.447088</LatitudeDegrees> <LongitudeDegrees>15.043741</LongitudeDegrees> </Position> <AltitudeMeters>25.1</AltitudeMeters> <DistanceMeters>12.8067</DistanceMeters> <HeartRateBpm> <Value>130</Value> </HeartRateBpm> </Trackpoint>

If I open this tcx file, do some editing and save it again (same file type), the heart rate data is gone:
Code:
<Trackpoint> <Time>2013-06-29T06:10:58.000Z</Time> <Position> <LatitudeDegrees>68.4470367243439</LatitudeDegrees> <LongitudeDegrees>15.043466682208987</LongitudeDegrees> </Position> <AltitudeMeters>24.7</AltitudeMeters> <DistanceMeters>0.0</DistanceMeters> </Trackpoint> <Trackpoint> <Time>2013-06-29T06:11:00.000Z</Time> <Position> <LatitudeDegrees>68.44711534308824</LatitudeDegrees> <LongitudeDegrees>15.043679979744866</LongitudeDegrees> </Position> <AltitudeMeters>25.1</AltitudeMeters> <DistanceMeters>12.3866</DistanceMeters> </Trackpoint>

Is there some thing I should do differently or is the job "saving a tcx as a tcx" messing it all up?


RE: RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - routeconverter - 02.07.2013

From the code I can't see anything wrong. Please put the .gpx and the .tcx file into a ZIP and upload it to this thread. Makes it easier for me to reproduce.


RE: RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - Ciryaher - 02.07.2013

Thanks for the quick reply.

Files are attached to this post.
Note that this problem happens when you have a gpx file, save it as a tcx (training center database 2), close the program. Open the new tcx file in a new instance of RouteConverter, and save it once again as a tcx file (also a training center database 2 file).

I have attached all three files, but you really only need the first (JUN-30-13 212757_edit_short.gpx) or second file (JUN-30-13 212757_edit_short_tcd2.tcx).


RE: RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - Ciryaher - 02.07.2013

What I am actually trying to do before hitting this problem, is to merge two bigger files. I had to use my backup GPS unit on the last part of my race, but that unit is recording in another format (gpx) than the first unit I used (tcx).

I am also trying to correct the trackpoints in tunnels and make some average points between the two tracks because I had some minutes without recording in the middle of my race.

If you want, have a look. Mabye you have a solution to my problem.


RE: RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - routeconverter - 03.07.2013

(02.07.2013, 21:54)Ciryaher Wrote: If you want, have a look. Mabye you have a solution to my problem.

I'm sure what the problem is here. I've loaded 1st.tcx and then 2nd.gpx


RE: RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - routeconverter - 03.07.2013

(02.07.2013, 15:49)Ciryaher Wrote: Note that this problem happens when you have a gpx file, save it as a tcx (training center database 2), close the program. Open the new tcx file in a new instance of RouteConverter, and save it once again as a tcx file (also a training center database 2 file).

Thank you, that helped to reproduce the issue. I've just uploaded an updated prerelease version of RouteConverter that reads and writes heart beat from tcx files. Please test and report.


RE: RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - Ciryaher - 04.07.2013

(03.07.2013, 17:06)routeconverter Wrote: I'm sure what the problem is here. I've loaded 1st.tcx and then 2nd.gpx
I solved the problem by using a tcx converter. I was not able to get RouteConverter to save the files in different formats without changing my values. I guess its quite painful to keep track of all the versions og both gpx and tcx.

(03.07.2013, 17:07)routeconverter Wrote: Thank you, that helped to reproduce the issue. I've just uploaded an updated prerelease version of RouteConverter that reads and writes heart beat from tcx files. Please test and report.

I have tested the prerelease from today (4. july) and it seems to do as planned. Heart beat data from the files are there. (I checked 4-5 trackpoints.)

Thank you Smile


RE: RouteConverter Release 2.9 from 27. May '13 - Garmin tcx-files. Deletes pulse data. - routeconverter - 05.07.2013

(04.07.2013, 21:57)Ciryaher Wrote:
(03.07.2013, 17:06)routeconverter Wrote: I'm sure what the problem is here. I've loaded 1st.tcx and then 2nd.gpx
I solved the problem by using a tcx converter.

Actually I wanted to write "I'm NOT sure what the problem is here. I've loaded 1st.tcx and then 2nd.gpx and produced both.zip"

(04.07.2013, 21:57)Ciryaher Wrote: I was not able to get RouteConverter to save the files in different formats without changing my values.

I don't understand the implications of that. Was data missing when you've merged the files like I did with the both.zip?

(04.07.2013, 21:57)Ciryaher Wrote: I guess its quite painful to keep track of all the versions og both gpx and tcx.

The pain is that the UI knows about positions in a list and a list of position list. This works fine for 70 of the formats. And then there are TCX, GPX, KML which allow for rather complex structures and a lot of detail information. For the UI and the conversion process I need to reduce the amount of information to a reasonable size.