envelope_box.hpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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-2019.
  6. // Modifications copyright (c) 2015-2019, 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_STRATEGIES_SPHERICAL_ENVELOPE_BOX_HPP
  14. #define BOOST_GEOMETRY_STRATEGIES_SPHERICAL_ENVELOPE_BOX_HPP
  15. #include <boost/geometry/strategies/spherical/expand_box.hpp>
  16. #include <boost/geometry/strategies/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. typedef strategy::expand::spherical_box box_expand_strategy_type;
  26. static inline box_expand_strategy_type get_box_expand_strategy()
  27. {
  28. return box_expand_strategy_type();
  29. }
  30. };
  31. #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
  32. namespace services
  33. {
  34. template <typename CalculationType>
  35. struct default_strategy<box_tag, spherical_equatorial_tag, CalculationType>
  36. {
  37. typedef strategy::envelope::spherical_box type;
  38. };
  39. template <typename CalculationType>
  40. struct default_strategy<box_tag, spherical_polar_tag, CalculationType>
  41. {
  42. typedef strategy::envelope::spherical_box type;
  43. };
  44. template <typename CalculationType>
  45. struct default_strategy<box_tag, geographic_tag, CalculationType>
  46. {
  47. typedef strategy::envelope::spherical_box type;
  48. };
  49. }
  50. #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
  51. }} // namespace strategy::envelope
  52. }} // namespace boost::geometry
  53. #endif // BOOST_GEOMETRY_STRATEGIES_SPHERICAL_ENVELOPE_BOX_HPP