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.
8 // Modifications copyright (c) 2017, Oracle and/or its affiliates.
10 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
12 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
13 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
15 // Use, modification and distribution is subject to the Boost Software License,
16 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
19 #ifndef BOOST_GEOMETRY_STRATEGIES_COVERED_BY_HPP
20 #define BOOST_GEOMETRY_STRATEGIES_COVERED_BY_HPP
22 #include <boost/mpl/assert.hpp>
24 #include <boost/geometry/core/cs.hpp>
25 #include <boost/geometry/core/point_type.hpp>
26 #include <boost/geometry/core/tag.hpp>
27 #include <boost/geometry/core/tags.hpp>
28 #include <boost/geometry/core/tag_cast.hpp>
31 namespace boost { namespace geometry
35 namespace strategy { namespace covered_by
43 \brief Traits class binding a covered_by determination strategy to a coordinate system
45 \tparam GeometryContained geometry-type of input (possibly) contained type
46 \tparam GeometryContaining geometry-type of input (possibly) containing type
47 \tparam TagContained casted tag of (possibly) contained type
48 \tparam TagContaining casted tag of (possibly) containing type
49 \tparam CsTagContained tag of coordinate system of (possibly) contained type
50 \tparam CsTagContaining tag of coordinate system of (possibly) containing type
54 typename GeometryContained,
55 typename GeometryContaining,
56 typename TagContained = typename tag<GeometryContained>::type,
57 typename TagContaining = typename tag<GeometryContaining>::type,
58 typename CastedTagContained = typename tag_cast
60 typename tag<GeometryContained>::type,
61 pointlike_tag, linear_tag, polygonal_tag, areal_tag
63 typename CastedTagContaining = typename tag_cast
65 typename tag<GeometryContaining>::type,
66 pointlike_tag, linear_tag, polygonal_tag, areal_tag
68 typename CsTagContained = typename tag_cast
70 typename cs_tag<typename point_type<GeometryContained>::type>::type,
73 typename CsTagContaining = typename tag_cast
75 typename cs_tag<typename point_type<GeometryContaining>::type>::type,
79 struct default_strategy
83 false, NOT_IMPLEMENTED_FOR_THESE_TYPES
84 , (types<GeometryContained, GeometryContaining>)
89 } // namespace services
92 }} // namespace strategy::covered_by
95 }} // namespace boost::geometry
98 #endif // BOOST_GEOMETRY_STRATEGIES_COVERED_BY_HPP