delete gpx trackpoint by extension value
wieluk opened this issue · 0 comments
wieluk commented
Hey I am new to gpx files and xml aswell so I don' really know how to start. In my gpx files there is a extension accuracy like this :
<extensions>
<accuracy>65.00</accuracy>
<batterylevel>55.00</batterylevel>
<useragent>Overland</useragent>
And i would like to remove the whole </trkpt>
if the accuracy is for example >100 has anybody a idea how I can get started? Is this possible with gpxpy?
Right now I am not sure how to get my accuracy I can print point.extension but this only gives me [<Element accuracy at 0x7f91725e88>, <Element batterylevel at 0x7f91725908>, <Element useragent at 0x7f91725bc8>]
Also my accuracy is not always first in the list.