1GIS::Distance::Polar(3pUms)er Contributed Perl DocumentatGiIoSn::Distance::Polar(3pm)
2
3
4
6 GIS::Distance::Polar - Polar coordinate flat-earth distance
7 calculations.
8
10 Supposedly this is a formula to better calculate distances at the
11 poles.
12
13 While implemented, this formula has not been tested much. If you use
14 it PLEASE share your results with the author. I've tested the results
15 of this formula versus GIS::Distance::Vincenty and it appears that this
16 formula is broken (or the implementation is) as you can see in
17 "t/polar.t".
18
19 A faster (XS) version of this formula is available as
20 GIS::Distance::Fast::Polar.
21
22 Normally this module is not used directly. Instead GIS::Distance is
23 used which in turn interfaces with the various formula classes.
24
26 a = pi/2 - lat1
27 b = pi/2 - lat2
28 c = sqrt( a^2 + b^2 - 2 * a * b * cos(lon2 - lon1) )
29 d = R * c
30
32 See "SUPPORT" in GIS::Distance.
33
35 See "AUTHORS" in GIS::Distance.
36
38 See "LICENSE" in GIS::Distance.
39
40
41
42perl v5.34.0 2021-07-22 GIS::Distance::Polar(3pm)