[josm-dev] TCX Support

Adrian Stabiszewski as at nitegate.de
Sun Aug 10 11:24:26 BST 2008


Hi JOSM Devs!

I added support for TCX files in JOSM. For those who don't know, TCX files
are GPS/Training log files used by the Training Center software from Garmin.

The code depends on JAXB (Java Architecture for XML Binding) so I don't know
if you like this dependency or not (it's GPLv2).

I'm supplying a patch that includes the generated code. Usually it is not
good practice to commit generated code into a SCM, but since the schema
won't change in the near future it might be easier for everyone to have it
in the SCM. 

The JAXB can be downloaded here:
https://jaxb.dev.java.net/

For the patch to work you will need the jaxb-api.jar and jaxb-api.jar in
your classpath.

I have added some information on JAXB and how to generate the parsing code
in the java doc of the TcxReader class. 
Using this approach we could add support for more XML based file formats. It
only takes a few minutes to do that.

Hope you will add this patch to the source code.

Regards,
Adrian.



More information about the josm-dev mailing list