Am Mon, 24. Jul 2017 um 21:28:42 +0200 schrieb Oliver Eichler:

Hi Oliver,

> There is no chance for an algorithm to know what points to use for the linear 
> interpolation interval. Without knowing the properties of the terrain, 
> knowing 
> that there is a valley floor, that point A and B are good ones and that the 
> terrain can be represented by a line, it's impossible to define the intervals 
> used for interpolation.

I cannot believe that. Assuming two points A(valley) and B(pass) on a
freshly routed track which are specified by their data A(long, lat, height)
and B(long, lat, height). The long and lat data are available from the
track itself as well as the points of the course in between. The height
is available from DEM.

So now we can calculate the total height difference = height(B) - height(A)

To calculate the inclination we need the length of the track between A
and B. This is just the sum of all distances between the track points.

Now we can calculate the inclination = height/length for the selected
track section.

For each track point between A and B we now can assign the interpolated
height(point) = inclination * distance(A, point).

Remark: distance(A, point) is of course the cumulated distance over each
track point between A and the target point.

Guido


-- 
http://wie-im-flug.net/
http://www.lug-burghausen.org/

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to