1GIS::Distance::GreatCirUcsleer(3Cpomn)tributed Perl DocuGmIeSn:t:aDtiisotnance::GreatCircle(3pm)
2
3
4
6 GIS::Distance::GreatCircle - Great circle distance calculations.
7
9 A true Great Circle Distance calculation. This was created because the
10 GIS::Distance::MathTrig formula uses Math::Trig's
11 "great_circle_distance()" which doesn't actually appear to use the
12 actual Great Circle Distance formula (more likely Cosine).
13
14 A faster (XS) version of this formula is available as
15 GIS::Distance::Fast::GreatCircle.
16
17 Normally this module is not used directly. Instead GIS::Distance is
18 used which in turn interfaces with the various formula classes.
19
21 c = 2 * asin( sqrt(
22 ( sin(( lat1 - lat2 )/2) )**2 +
23 cos( lat1 ) * cos( lat2 ) *
24 ( sin(( lon1 - lon2 )/2) )**2
25 ) )
26
28 See "SUPPORT" in GIS::Distance.
29
31 See "AUTHORS" in GIS::Distance.
32
34 See "LICENSE" in GIS::Distance.
35
36
37
38perl v5.34.0 2022-01-21 GIS::Distance::GreatCircle(3pm)