linear.hpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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, 2016, 2018.
  6. // Modifications copyright (c) 2015-2018, 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_ALGORITHMS_DETAIL_ENVELOPE_LINEAR_HPP
  14. #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_LINEAR_HPP
  15. #include <boost/geometry/core/tags.hpp>
  16. #include <boost/geometry/algorithms/detail/envelope/range.hpp>
  17. #include <boost/geometry/algorithms/dispatch/envelope.hpp>
  18. // For backward compatibility
  19. #include <boost/geometry/strategies/cartesian/envelope.hpp>
  20. #include <boost/geometry/strategies/spherical/envelope.hpp>
  21. #include <boost/geometry/strategies/geographic/envelope.hpp>
  22. namespace boost { namespace geometry
  23. {
  24. #ifndef DOXYGEN_NO_DISPATCH
  25. namespace dispatch
  26. {
  27. template <typename Linestring>
  28. struct envelope<Linestring, linestring_tag>
  29. : detail::envelope::envelope_range
  30. {};
  31. template <typename MultiLinestring>
  32. struct envelope<MultiLinestring, multi_linestring_tag>
  33. : detail::envelope::envelope_multi_range
  34. <
  35. detail::envelope::envelope_range
  36. >
  37. {};
  38. } // namespace dispatch
  39. #endif // DOXYGEN_NO_DISPATCH
  40. }} // namespace boost::geometry
  41. #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_LINEAR_HPP