![]() |
|
Problem reading a GPX file - 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: Problem reading a GPX file (/thread-2632.html) Pages:
1
2
|
Problem reading a GPX file - V.V.V. - 25.09.2018 Hello, I have use a FOSS program "Geonaute OnMove 220 OMH/OMD to GPX converter omx2gpx " and it produces a GPX file which is well read by GPXSee but RouteConverter is not able to read it: RC starts to check file formats without finish. The file seems to have the good gpx structure so I have attached one of this files in order to can test it. Thank you very much for your good and hard work. RE: Problem reading a GPX file - lundefugl - 26.09.2018 (25.09.2018, 20:49)V.V.V. Wrote: The file seems to have the good gpx structure so I have attached one of this files in order to can test it. Hello, the file is not valid. It uses a namespace "gpxtpx" for the extensions that is undefined. Add the namespace to the 2nd line. The line must look like this: Code: <gpx version="1.1" creator="OMX2GPX" xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v2">Thomas RE: Problem reading a GPX file - V.V.V. - 26.09.2018 Thank you very much Thomas : It works. One thing more, RouteConverter don't read the speed data even in the original file is the speed: <trkpt lat="40.139935" lon="-6.032712"> <time>2018-08-23T10:59:05Z</time> <speed>25.45</speed> <extensions> <gpxtpx:TrackPointExtension> <gpxtpx:hr>103</gpxtpx:hr> </gpxtpx:TrackPointExtension> </extensions> </trkpt> But also RouteConverter doesn't write the speed info in the file even if you complete the points and it "kills" the initial speed info, deleting the <speed></speed> fields. On the other hand, it doesn't read the HerthRate info <gpxtpx:hr> but it preserve the info when you save the file (good!). RE: Problem reading a GPX file - routeconverter - 26.09.2018 (26.09.2018, 07:10)V.V.V. Wrote: One thing more, RouteConverter don't read the speed data even in the original file is the speed: This isn't valid GPX 1.1 and thus RouteConverter ignores it. There is simply no <speed> element defined in GPX 1.1 This is valid since it uses an extension from Garmin: <trkpt lat="50.63688" lon="8.141465"> <ele>635.0</ele> <time>2013-08-30T14:58:18.000Z</time> <name>Waypoint 8</name> <extensions> <gpxtpx:TrackPointExtension xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v2"> <gpxtpx:speed>2.2</gpxtpx:speed> </gpxtpx:TrackPointExtension> </extensions> </trkpt> RE: Problem reading a GPX file - V.V.V. - 26.09.2018 Again solved the problem. Thank you very much Christian. Although I have been able to correct it in the program code, I will notify the author in SourceForge saying the source. Edit: Really is not completely solved RC read the speed but not the good value. For instance for the attached file, in the first point <time>2018-08-23T10:59:05Z</time> .... <gpxtpx:speed>25.45</gpxtpx:speed> RC shows 40.1399350,-6.0327120,Position 1, 92.0 km/h. BTW you could help me about how it would be included in the format gpx data of the KCal consumed info? Neither the author nor I have found the gpx or Garmin tokens to do that. Thanks in advanced for your support. RE: Problem reading a GPX file - routeconverter - 26.09.2018 (26.09.2018, 18:47)V.V.V. Wrote: Edit: Really is not completely solved RC read the speed but not the good value. For instance for the attached file, in the first point Again, that is valid. Garmin states in its documentation: <xsd:simpleType name="MetersPerSecond_t"> <xsd:annotation><xsd:documentation> This type contains a speed measured in meters per second. </xsd:documentation></xsd:annotation> <xsd:restriction base="xsd:double"/> </xsd:simpleType> So if you're using that extension you have to convert to m/s. (26.09.2018, 18:47)V.V.V. Wrote: BTW you could help me about how it would be included in the format gpx data of the KCal consumed info? What data do you mean? You might want to check the XML Schemata if've collected for the various GPX extensions: https://github.com/cpesch/RouteConverter/tree/master/gpx/src/main/doc RE: Problem reading a GPX file - V.V.V. - 27.09.2018 (26.09.2018, 19:56)routeconverter Wrote: So if you're using that extension you have to convert to m/s. Fine, right again. Thank you Easy to solve dividing. (26.09.2018, 19:56)routeconverter Wrote: What data do you mean? You might want to check the XML Schemata if've collected for the various GPX extensions: https://github.com/cpesch/RouteConverter...c/main/docOne question more abusing of your patience .If I have understood well this documentation, in order to include the track stats, respecting the gpx standard and without disturbing the reading of the RC file, the gpx text must be like: ...... <trk> <gpxtrkx:TrackStatsExtension xmlns:gpxtrkx="http://www.garmin.com/xmlschemas/TrackStatsExtension/v1"> <gpxtrkx: Distance>Total distance en meters</gpxtrkx: Distance> <gpxtrkx:TimerTime>Total time in Seconds</gpxtrkx:TimerTime> <gpxtrkx:MovingSpeed>Average Speed in MetersPerSec_t</gpxtrkx:MovingSpeed> <gpxtrkx:MaxSpeed>Max Speed in MetersPerSec_t</gpxtrkx:MaxSpeed> <gpxtrkx:Calories>Calories in unsignedInt</gpxtrkx:Calories> <gpxtrkx:AvgHeartRate>Avg Hearth rate in PerMinute_t</<gpxtrkx:AvgHeartRate> <gpxtrkx:MaxHeartRate?>Max Hearth rate in PerMinute_t</<gpxtrkx:MaxHeartRate?> </gpxtrkx:TrackStatsExtension> <trkseg> <trkpt lat="40.139935" lon="-6.032712"> <time>2018-08-23T10:59:05Z</time> ...... Thank you for your aide ... the ONMove-Geonaute 500 users we are very grateful to you. RE: Problem reading a GPX file - routeconverter - 28.09.2018 (27.09.2018, 19:55)V.V.V. Wrote: If I have understood well this documentation, in order to include the track stats, respecting the gpx standard and without disturbing the reading of the RC file, the gpx text must be like: If there is no bug, a valid extension should be preserved by RouteConverter. The only extensions that RouteConverter interacts with are http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtension/v2 Everything else should stay untouched ;-) (27.09.2018, 19:55)V.V.V. Wrote: Thank you for your aide ... the ONMove-Geonaute 500 users we are very grateful to you. That's a clock with GPS? RE: Problem reading a GPX file - V.V.V. - 29.09.2018 Quote:That's a clock with GPS? Yes, is the Decathlon GPS watch series. In Android and Windows it offers a software in order to upload the tracks but is very intrusive. But Clement CORDE has made a FOSS "OMX2GPX" - A simple Geonaute OnMove 220 GPS watch OMH/OMD to GPX converter for Linux but with the source has been easy to compile in windows. RE: Problem reading a GPX file - RandyBonnette - 25.03.2019 Hi guys, I'm having issues with the GPX files. Tried to convert them on MyGeodata Cloud. But the converted files appeared to be corrupted. Not sure what to try next. I'm far from tech documentation gimmicks and tools, sorry for such a simple question. What is the easiest option for Linux? Randy Bonnette - topics to write my essay for me on Technology Randy |