Boost.Geometry    Boost C++ Libraries
Public Member Functions | List of all members
boost::geometry::strategy::distance::andoyer< Spheroid, CalculationType > Class Template Reference

Point-point distance approximation taking flattening into account. More...

Inheritance diagram for boost::geometry::strategy::distance::andoyer< Spheroid, CalculationType >:
boost::geometry::strategy::distance::geographic< strategy::andoyer, Spheroid, CalculationType >

Public Member Functions

 andoyer ()
 
 andoyer (Spheroid const &spheroid)
 
- Public Member Functions inherited from boost::geometry::strategy::distance::geographic< strategy::andoyer, Spheroid, CalculationType >
calculation_type< Point1,
Point2 >::type 
apply (Point1 const &point1, Point2 const &point2) const
 
 geographic ()
 
 geographic (Spheroid const &spheroid)
 
Spheroid const & model () const
 

Additional Inherited Members

- Public Types inherited from boost::geometry::strategy::distance::geographic< strategy::andoyer, Spheroid, CalculationType >
typedef Spheroid model_type
 

Detailed Description

template<typename Spheroid = srs::spheroid<double>, typename CalculationType = void>
class boost::geometry::strategy::distance::andoyer< Spheroid, CalculationType >

Point-point distance approximation taking flattening into account.

Template Parameters
SpheroidThe reference spheroid model
CalculationTypenumeric type for calculation (e.g. high precision); if [*void] then it is extracted automatically from the coordinate type and (if necessary) promoted to floating point
Author
After Andoyer, 19xx, republished 1950, republished by Meeus, 1999
Note
Although not so well-known, the approximation is very good: in all cases the results are about the same as Vincenty. In my (Barend's) testcases the results didn't differ more than 6 m
See Also
http://nacc.upc.es/tierra/node16.html
http://sci.tech-archive.net/Archive/sci.geo.satellite-nav/2004-12/2724.html
http://home.att.net/~srschmitt/great_circle_route.html (implementation)
http://www.codeguru.com/Cpp/Cpp/algorithms/article.php/c5115 (implementation)
http://futureboy.homeip.net/frinksamp/navigation.frink (implementation)
http://www.voidware.com/earthdist.htm (implementation)
http://www.dtic.mil/docs/citations/AD0627893
http://www.dtic.mil/docs/citations/AD703541

Constructor & Destructor Documentation

template<typename Spheroid = srs::spheroid<double>, typename CalculationType = void>
boost::geometry::strategy::distance::andoyer< Spheroid, CalculationType >::andoyer ( )
template<typename Spheroid = srs::spheroid<double>, typename CalculationType = void>
boost::geometry::strategy::distance::andoyer< Spheroid, CalculationType >::andoyer ( Spheroid const &  spheroid)
explicit

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen