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