...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Geographic area calculation by trapezoidal rule plus integral approximation that gives the ellipsoidal correction
template<typename FormulaPolicy, std::size_t SeriesOrder, typename Spheroid, typename CalculationType> class strategy::area::geographic { // ... };
Parameter |
Default |
Description |
---|---|---|
typename FormulaPolicy |
strategy::andoyer |
Formula used to calculate azimuths |
std::size_t SeriesOrder |
strategy::default_order<FormulaPolicy>::value |
The order of approximation of the geodesic integral |
typename Spheroid |
srs::spheroid<double> |
The spheroid model |
typename CalculationType |
void |
numeric 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 |
Function |
Description |
Parameters |
---|---|---|
geographic(Spheroid const & spheroid = Spheroid())
|
Spheroid const &: spheroid: |
Function |
Description |
Parameters |
Returns |
---|---|---|---|
template<typename PointOfSegment, typename Geometry> void apply(PointOfSegment const & p1, PointOfSegment const & p2, state< Geometry > & st)
|
PointOfSegment const &: p1: PointOfSegment const &: p2: state< Geometry > &: st: |
||
template<typename Geometry> result_type< Geometry >::type result(state< Geometry > const & st)
|
state< Geometry > const &: st: |
||
Spheroid model()
|
#include <boost/geometry/strategy/geographic/area.hpp>