From c4d60d094d86602524e294ca153e297ff23dca2c Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Wed, 17 Jul 2013 21:34:46 +0000 Subject: [PATCH] [geometry][extension] Updated andoyer/vincenty adaption (added radius_type for distance_cross_track) [SVN r85066] --- .../extensions/gis/geographic/strategies/andoyer.hpp | 2 ++ .../extensions/gis/geographic/strategies/vincenty.hpp | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/boost/geometry/extensions/gis/geographic/strategies/andoyer.hpp b/include/boost/geometry/extensions/gis/geographic/strategies/andoyer.hpp index ab7143f16..4c29e7141 100644 --- a/include/boost/geometry/extensions/gis/geographic/strategies/andoyer.hpp +++ b/include/boost/geometry/extensions/gis/geographic/strategies/andoyer.hpp @@ -63,6 +63,8 @@ public : > {}; + typedef RadiusType radius_type; + inline andoyer() : m_ellipsoid() {} diff --git a/include/boost/geometry/extensions/gis/geographic/strategies/vincenty.hpp b/include/boost/geometry/extensions/gis/geographic/strategies/vincenty.hpp index 7b9a2e595..85f968e3b 100644 --- a/include/boost/geometry/extensions/gis/geographic/strategies/vincenty.hpp +++ b/include/boost/geometry/extensions/gis/geographic/strategies/vincenty.hpp @@ -33,7 +33,8 @@ namespace strategy { namespace distance /*! \brief Distance calculation formulae on latlong coordinates, after Vincenty, 1975 \ingroup distance -\tparam RadiusType type of radius (of the Earth) +\tparam Point1 \tparam_first_point +\tparam Point2 \tparam_second_point \tparam CalculationType \tparam_calculation \author See http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf \author Adapted from various implementations to get it close to the original document @@ -63,6 +64,8 @@ public : > {}; + typedef RadiusType radius_type; + inline vincenty() {} @@ -247,4 +250,3 @@ struct result_from_distance, P1, P2 > #endif // BOOST_GEOMETRY_EXTENSIONS_GIS_GEOGRAPHIC_STRATEGIES_VINCENTY_HPP -