envelope_box.hpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
  5. // This file was modified by Oracle on 2015-2020.
  6. // Modifications copyright (c) 2015-2020, Oracle and/or its affiliates.
  7. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
  8. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  9. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  10. // Distributed under the Boost Software License, Version 1.0.
  11. // (See accompanying file LICENSE_1_0.txt or copy at
  12. // http://www.boost.org/LICENSE_1_0.txt)
  13. #ifndef BOOST_GEOMETRY_STRATEGY_SPHERICAL_ENVELOPE_BOX_HPP
  14. #define BOOST_GEOMETRY_STRATEGY_SPHERICAL_ENVELOPE_BOX_HPP
  15. #include <boost/geometry/strategy/spherical/expand_box.hpp>
  16. #include <boost/geometry/strategy/envelope.hpp>
  17. namespace boost { namespace geometry
  18. {
  19. namespace strategy { namespace envelope
  20. {
  21. struct spherical_box
  22. : geometry::detail::envelope::envelope_box_on_spheroid
  23. {
  24. typedef spherical_tag cs_tag;
  25. };
  26. #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
  27. namespace services
  28. {
  29. template <typename CalculationType>
  30. struct default_strategy<box_tag, spherical_equatorial_tag, CalculationType>
  31. {
  32. typedef strategy::envelope::spherical_box type;
  33. };
  34. template <typename CalculationType>
  35. struct default_strategy<box_tag, spherical_polar_tag, CalculationType>
  36. {
  37. typedef strategy::envelope::spherical_box type;
  38. };
  39. template <typename CalculationType>
  40. struct default_strategy<box_tag, geographic_tag, CalculationType>
  41. {
  42. typedef strategy::envelope::spherical_box type;
  43. };
  44. }
  45. #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
  46. }} // namespace strategy::envelope
  47. }} // namespace boost::geometry
  48. #endif // BOOST_GEOMETRY_STRATEGY_SPHERICAL_ENVELOPE_BOX_HPP