Menu

#46 Elevation profile

Enhancement
open
nobody
None
1
2019-10-16
2019-10-15
Reinert
No

Incoming new feature, the elevation profile for the Ruler.
Based on SRTM .hgt files, the very same files used by OruxMaps. (3 arc-seconds resolution).
The profile is rendered by a JFreeChart stacked area, directly drawed on the map canvas (no panel or widget container added) .
Very useful for hiking or cycling.

Files will be stored in /tilestore/dem/
Get them here
http://www.viewfinderpanoramas.org/Coverage%20map%20viewfinderpanoramas_org3.htm

Patch to come very soon.

1 Attachments

Discussion

  • r_x

    r_x - 2019-10-16

    Please don't post links to non-official libraries download locations - I will ignore them as they are untrusted code I can't control.

    The only links I accept are links to libraries in one of the common maven repositories:
    https://mvnrepository.com

    In general I like your modifactions, however the way how it is integrated into the MOBAC UI is not what I have in mind for MOBAC. IMHO it would be better to integrate this into the GPX panel, which would allow the user not only to load GPX files but create custom tracks which then could be measured and displayed regarding the elevation (with a chooser for selecting the track elevantion or alternatively the SRTM elevantionn file).

    What do you think?

     
  • Reinert

    Reinert - 2019-10-16

    Sure.
    For the moment these is no link between the GPX panel and the Ruler/Elevation, but i'de like to fusion them as a single big Track feature. The ruler checkbox should definitly be kept on the main map, as i, like others, love to do a lot of impulsive measures for trek planning or daily bike usage purpose.
    The chart could use elevation from an imported .gpx as well.
    Actually, it's working almost the same way as Google Earth. It is well done: You do quick measures, and at some point if you are happy with your drawing you can click Save to convert it to a Path that becomes available in the main treeview (~=GPX panel). Then you can reload it, modify it, display elevation profile or even export it as .kml.
    We must think about possibles changes to the GPX panel (treeview, context menus, edition feature, export, buttons ect).

    libs
    https://mvnrepository.com/artifact/org.jfree/jfreechart/1.0.19
    https://mvnrepository.com/artifact/org.jfree/jcommon/1.0.23
    https://mvnrepository.com/artifact/org.apache.commons/commons-math3/3.6.1

     

Log in to post a comment.