12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef BOOST_GEOMETRY_STRATEGY_GEOGRAPHIC_ENVELOPE_HPP
- #define BOOST_GEOMETRY_STRATEGY_GEOGRAPHIC_ENVELOPE_HPP
- #include <boost/geometry/srs/spheroid.hpp>
- #include <boost/geometry/strategy/geographic/envelope_segment.hpp>
- #include <boost/geometry/strategy/geographic/expand_segment.hpp>
- #include <boost/geometry/strategies/geographic/parameters.hpp>
- #include <boost/geometry/strategy/spherical/envelope.hpp>
- namespace boost { namespace geometry
- {
- namespace strategy { namespace envelope
- {
- template
- <
- typename FormulaPolicy = strategy::andoyer,
- typename Spheroid = geometry::srs::spheroid<double>,
- typename CalculationType = void
- >
- class geographic
- : public spherical<CalculationType>
- {
- public:
- typedef geographic_tag cs_tag;
- typedef Spheroid model_type;
- inline geographic()
- : m_spheroid()
- {}
- explicit inline geographic(Spheroid const& spheroid)
- : m_spheroid(spheroid)
- {}
- Spheroid model() const
- {
- return m_spheroid;
- }
- private:
- Spheroid m_spheroid;
- };
- #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
- namespace services
- {
- template <typename Tag, typename CalculationType>
- struct default_strategy<Tag, geographic_tag, CalculationType>
- {
- typedef strategy::envelope::geographic
- <
- strategy::andoyer,
- geometry::srs::spheroid<double>,
- CalculationType
- > type;
- };
- }
- #endif
- }}
- }}
- #endif
|