3 // Copyright (c) 2019, Oracle and/or its affiliates.
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7 // Licensed under the Boost Software License version 1.0.
8 // http://www.boost.org/users/license.html
10 #ifndef BOOST_GEOMETRY_EXTENSIONS_STRATEGIES_CARTESIAN_IO_HPP
11 #define BOOST_GEOMETRY_EXTENSIONS_STRATEGIES_CARTESIAN_IO_HPP
14 #include <boost/geometry/strategies/io.hpp>
16 #include <boost/geometry/strategies/cartesian/point_order.hpp>
17 #include <boost/geometry/strategies/cartesian/point_in_poly_winding.hpp>
20 namespace boost { namespace geometry
23 namespace strategy { namespace io
26 template <typename CalculationType = void>
29 typedef strategy::point_order::cartesian<CalculationType> point_order_strategy_type;
31 static inline point_order_strategy_type get_point_order_strategy()
33 return point_order_strategy_type();
36 template <typename Geometry1, typename Geometry2>
37 struct point_in_geometry_strategy
39 typedef strategy::within::cartesian_winding
41 typename point_type<Geometry1>::type,
42 typename point_type<Geometry2>::type,
47 template <typename Geometry1, typename Geometry2>
48 static inline typename point_in_geometry_strategy<Geometry1, Geometry2>::type
49 get_point_in_geometry_strategy()
51 typedef typename point_in_geometry_strategy
54 >::type strategy_type;
55 return strategy_type();
63 struct default_strategy<cartesian_tag>
65 typedef cartesian<> type;
68 } // namespace services
70 }} // namespace strategy::io
72 }} // namespace boost::geometry
74 #endif // BOOST_GEOMETRY_EXTENSIONS_STRATEGIES_CARTESIAN_IO_HPP