Closed turbomam closed 4 years ago
I get the sense that this is more of a pandas problem than a gpxpy problem. Or even a general timezone problem?
In any case, this slightly different approach from https://ocefpaf.github.io/python4oceanographers/blog/2014/08/18/gpx/ does work
data = []
gpx = gpxpy.parse(open(gpxfile))
track = gpx.tracks[0]
segment = track.segments[0]
for point_idx, point in enumerate(segment.points):
data.append([point.longitude, point.latitude,
point.elevation, point.time, segment.get_speed(point_idx)])
columns = ['Longitude', 'Latitude', 'Altitude', 'Time', 'Speed']
df = DataFrame(data, columns=columns)
Thanks for this package
I'm cross-posting from Stack Overflow
I'm getting
when
data
is a list of trackpoints and II'm following this tutorial: https://towardsdatascience.com/how-tracking-apps-analyse-your-gps-data-a-hands-on-tutorial-in-python-756d4db6715d
SimpleTZ
is something you created, right? Is there a way for me to use a different time zone system or to omit the time zone when runninggpxpy.parse
? I looked at the source, and th eonly other argumetns I see ar efor GPX version (and character encoding?)