This object is in archive! 

Is it possibile to export an elevation profile to PNG or another graphical format?

Adam Sędziwy shared this question 8 years ago
Answered

As in title

Replies (8)

photo
1

Maybe not exactly what you're after but you can open track details - share - track overview..

See attachment

This comment is in trash! Restore
photo
1

Well, I know that. Anyway, my problem is that I've a huge gpx track (approx. 30MB, covering the 600km trail), so an image being generated on the screen has a very poor resolution.

This comment is in trash! Restore
photo
1

export your track.gpx

and upload it to

https://gpxviz.sisao.de/

right click on profile > save as

This comment is in trash! Restore
photo
1

It seems that both gpxviz and gpxviz2 are unable to handle my 28MB gpx file: the track is uploaded correctly (presumably- analyzing my laptop's data transfer summary) but they hang when generating the profile.

This comment is in trash! Restore
photo
This comment is in trash! Restore
photo
1

Back again here. I've tried the above link and got the following conclusions:

1) It's the client-side utility (I've found this analyzing the uploaded data volume) - namely, all work is made by some web browser-build Java Script interpreter

2) It works well for medium size files (e.g., 2MB)

3) Nothing happens for 29 MB gpx track :(

This comment is in trash! Restore
photo
1

Yeah, it looks to be a fix I was looking for :D

I'll try and report. Anyway, thanks a lot!

This comment is in trash! Restore
photo
1

with RouteConverter you can also save the displayed chart

https://www.routeconverter.com/home/en

example:

4c56f60dcf3714d77afdea537e54d670

This comment is in trash! Restore
photo
1

Finally I solved the problem myself. Below I attach the Python script for shrinking gpx as the web services weren't capable of doing it (my gpx file was to large). Once a slimmed file is ready one can plot a profile using any tool.


import gpxpy
gpx_file = open('gsb_2017_track.gpx', 'r')
gpx = gpxpy.parse(gpx_file)

for track in gpx.tracks:
    for segment in track.segments:
        segment.reduce_points(50) 
# 50 = minimal spacing (in meters) between two subsequent points. Chane if needed

text_file = open("shrinked.gpx", 'wb')
text_file.write(gpx.to_xml().encode('utf-8'))
text_file.close()

This comment is in trash! Restore

Replies have been locked on this page!

You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!