[GRASS-user] How to find a point on Earth d distance away from a given point?

Yuri Kanivetsky yuri.kanivetsky at gmail.com
Thu Sep 8 03:58:40 PDT 2016


Hi Markus,

Thanks for your reply. But actually, my friend has pointed out at my
error. But if not that, your link would be the next the place to try
and find the answer.

In case someone will find this, here's the correct formula:

    lng1 + d(acos(
        (cos(dist / R) - sin(r(lat1)) * sin(r(lat1)))
        / (cos(r(lat1)) * cos(r(lat1)))
    ))

And a fiddle to experiment with:

http://fiddle.jshell.net/LLh42xh5/5/

Regards,
Yuri


More information about the grass-user mailing list