Skip to content
Prev 19883 / 29559 Next

Taking elevation into account when calculating distance

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:
Message-ID: <CANVKczOMqr6bu1vmL6YojdvYUTOSw0xrXJZT+x85MmGZXgizoA@mail.gmail.com>
In-Reply-To: <00a71e91955a45268ecbf4f2d88c0414@EX-0-HT0.lancs.local>