Elevation profile
Brought to you by:
r_x
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.
Here we go
. Elevation profile chart, smoothed with Loess interpolator
. Map selection from ruler path
The folowing libs are required
. jfreechart-1.0.19.jar
. jcommon-1.0.23.jar
. commons-math3-3.6.1.jar
Get them here
https://drive.google.com/open?id=1h_2234FL2Yqemc7_Vl0zII-mAVoW0aSm
Dem folder is created in the tilestore folder. drop your downloead .hgt files there.
http://www.viewfinderpanoramas.org/Coverage%20map%20viewfinderpanoramas_org3.htm
Screenshot
https://i.ibb.co/yQqJgYv/altitude4.jpg
Thanks in advance for the merge
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?
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