Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

strategy::area::geographic

Geographic area calculation.

Description

Geographic area calculation by trapezoidal rule plus integral approximation that gives the ellipsoidal correction

Synopsis

template<typename FormulaPolicy, std::size_t SeriesOrder, typename Spheroid, typename CalculationType>
class strategy::area::geographic
{
  // ...
};

Template parameter(s)

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

Constructor(s)

Function

Description

Parameters

geographic(Spheroid const & spheroid = Spheroid())

Spheroid const &: spheroid:

Member Function(s)

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()

Header

#include <boost/geometry/strategy/geographic/area.hpp>

See also

PrevUpHomeNext