Skip to main content

It's been a while since I posted but I am doing something different and after spending some time looking in the forums for a solution, I thought I would just post it.  It's probably something simple, but I have limited experience with FME.

 

I downloaded a GPX file from my bike computer and want to do some data processing on it, but when I view the file in FME Inspector, I am missing the "power" attribute which appears in the GPS as shown below.  

   <trkpt lat="43.7513380" lon="-80.5606200">
    <ele>335.6</ele>
    <time>2023-01-07T13:02:24Z</time>
    <extensions>
     <power>36</power>
     <gpxtpx:TrackPointExtension>
      <gpxtpx:atemp>20</gpxtpx:atemp>
      <gpxtpx:hr>89</gpxtpx:hr>
      <gpxtpx:cad>51</gpxtpx:cad>
     </gpxtpx:TrackPointExtension>
    </extensions>
   </trkpt>

I do get the time, temperature, hr and cad, but not <power>.

I expect it has something to with the fact that it is not in the <gpxtpx> section, but then neither is time or elevation, but I see them in FME.  How do I expose <power>?

Hello @ronmak​ 

 

Please, could you share your data?


Hello @ronmak​ 

 

Please, could you share your data?

Here is the data. Don't get too hung up on the spatial data. It is from a bike computer on a trainer that wasnt really going anywhere!


I do not have an answer, but as it is XML, it is not too hard do it yourself. XMLFragmenter to get the trackpoints using gpx/trk/trkseg/trkpt as elements to match, enable flattening and you're done.


Use the XML reader instead of the GPX reader. You will need to set the Elements to Match parameter to the trkpt element.

image


Use the XML reader instead of the GPX reader. You will need to set the Elements to Match parameter to the trkpt element.

image

Great solution. Congratulations!


Use the XML reader instead of the GPX reader. You will need to set the Elements to Match parameter to the trkpt element.

image

resulting chartThanks! It works great.


Reply