covered_by.hpp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
  5. // This file was modified by Oracle on 2017-2020.
  6. // Modifications copyright (c) 2017-2020, Oracle and/or its affiliates.
  7. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  8. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
  9. // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
  10. // Use, modification and distribution is subject to the Boost Software License,
  11. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  12. // http://www.boost.org/LICENSE_1_0.txt)
  13. #ifndef BOOST_GEOMETRY_STRATEGIES_COVERED_BY_HPP
  14. #define BOOST_GEOMETRY_STRATEGIES_COVERED_BY_HPP
  15. #include <boost/geometry/core/cs.hpp>
  16. #include <boost/geometry/core/point_type.hpp>
  17. #include <boost/geometry/core/static_assert.hpp>
  18. #include <boost/geometry/core/tag.hpp>
  19. #include <boost/geometry/core/tags.hpp>
  20. #include <boost/geometry/core/tag_cast.hpp>
  21. namespace boost { namespace geometry
  22. {
  23. namespace strategy { namespace covered_by
  24. {
  25. namespace services
  26. {
  27. /*!
  28. \brief Traits class binding a covered_by determination strategy to a coordinate system
  29. \ingroup covered_by
  30. \tparam GeometryContained geometry-type of input (possibly) contained type
  31. \tparam GeometryContaining geometry-type of input (possibly) containing type
  32. \tparam TagContained casted tag of (possibly) contained type
  33. \tparam TagContaining casted tag of (possibly) containing type
  34. \tparam CsTagContained tag of coordinate system of (possibly) contained type
  35. \tparam CsTagContaining tag of coordinate system of (possibly) containing type
  36. */
  37. template
  38. <
  39. typename GeometryContained,
  40. typename GeometryContaining,
  41. typename TagContained = typename tag<GeometryContained>::type,
  42. typename TagContaining = typename tag<GeometryContaining>::type,
  43. typename CastedTagContained = typename tag_cast
  44. <
  45. typename tag<GeometryContained>::type,
  46. pointlike_tag, linear_tag, polygonal_tag, areal_tag
  47. >::type,
  48. typename CastedTagContaining = typename tag_cast
  49. <
  50. typename tag<GeometryContaining>::type,
  51. pointlike_tag, linear_tag, polygonal_tag, areal_tag
  52. >::type,
  53. typename CsTagContained = typename tag_cast
  54. <
  55. typename cs_tag<typename point_type<GeometryContained>::type>::type,
  56. spherical_tag
  57. >::type,
  58. typename CsTagContaining = typename tag_cast
  59. <
  60. typename cs_tag<typename point_type<GeometryContaining>::type>::type,
  61. spherical_tag
  62. >::type
  63. >
  64. struct default_strategy
  65. {
  66. BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
  67. "Not implemented for these types.",
  68. GeometryContained, GeometryContaining);
  69. };
  70. } // namespace services
  71. }} // namespace strategy::covered_by
  72. }} // namespace boost::geometry
  73. #endif // BOOST_GEOMETRY_STRATEGIES_COVERED_BY_HPP