[R-sig-Geo] Taking elevation into account when calculating distance

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Fri Nov 29 12:52:49 CET 2013


Ask Pythagoras?

On a small enough raster so that you can ignore the (nearly) spherical
earth its just sqrt(dx^2+dy^2+dz^2) where dz is the elevation
difference in the same units as x and y.

Sample the elevations from the raster using the functions in the
raster package. Job done?

Barry



On Fri, Nov 29, 2013 at 10:27 AM, John Tellat <john.tellat at gmail.com> wrote:
> Hi,
>
> I´m currently dealing with telemetry data combined with altitude
> measurements in a mountainous area with many valleys.
>
> I want to compute the straight distance between points but taking into
> account the elevation which is likely to extend the distance.
> Any idea on how to compute the "real distance" based on elevation raster
> data?
>
> Thanks!
>
>         [[alternative HTML version deleted]]
>



More information about the R-sig-Geo mailing list