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_GEOGRAPHIC_IO_HPP
11 #define BOOST_GEOMETRY_EXTENSIONS_STRATEGIES_GEOGRAPHIC_IO_HPP
14 #include <boost/geometry/strategies/io.hpp>
16 #include <boost/geometry/strategies/geographic/point_order.hpp>
17 #include <boost/geometry/strategies/geographic/point_in_poly_winding.hpp>
20 namespace boost { namespace geometry
23 namespace strategy { namespace io
28 typename FormulaPolicy = strategy::andoyer,
29 typename Spheroid = srs::spheroid<double>,
30 typename CalculationType = void
34 typedef strategy::point_order::geographic
39 > point_order_strategy_type;
41 point_order_strategy_type get_point_order_strategy() const
43 return point_order_strategy_type(m_spheroid);
46 template <typename Geometry1, typename Geometry2>
47 struct point_in_geometry_strategy
49 typedef strategy::within::geographic_winding
51 typename point_type<Geometry1>::type,
52 typename point_type<Geometry2>::type,
59 template <typename Geometry1, typename Geometry2>
60 typename point_in_geometry_strategy<Geometry1, Geometry2>::type
61 get_point_in_geometry_strategy() const
63 typedef typename point_in_geometry_strategy
66 >::type strategy_type;
67 return strategy_type(m_spheroid);
73 geographic(Spheroid const& spheroid)
74 : m_spheroid(spheroid)
85 struct default_strategy<geographic_tag>
87 typedef geographic<> type;
90 } // namespace services
92 }} // namespace strategy::io
94 }} // namespace boost::geometry
96 #endif // BOOST_GEOMETRY_EXTENSIONS_STRATEGIES_GEOGRAPHIC_IO_HPP