[Marble-devel] Improvements for climb/descend calculation routines

Oliver Haag oliver.haag at gmail.com
Wed May 14 22:44:30 UTC 2014


Hi,

I'm currently creating some cycling routes with Marble (Really awesome overall 
for this task! :)).
One thing that I've found out is that the climb and descend height of the 
elevation profile aren't very accurate (Usually to large). I've modified the 
averaging algorithm to average over 200 meters (Probably another value would 
be even better, not sure) instead of 5 points (Those can be very close 
together or really far away from each other).
This approach gives pretty good values for me so far. I've attached the patch 
for it to this mail, averageDistance specifies the distance the algorithms 
averages over in meters.

Greetings,

Oliver


P.S.: If you specify many waypoints for your route the dock for the route gets 
really large vertically - would be nice to have a scrollbar there :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ElevationProfileFloatItem.cpp.diff
Type: text/x-patch
Size: 4320 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20140515/87827380/attachment.diff>


More information about the Marble-devel mailing list