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.
6 // Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland.
8 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
9 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
11 // Use, modification and distribution is subject to the Boost Software License,
12 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
13 // http://www.boost.org/LICENSE_1_0.txt)
15 #ifndef BOOST_GEOMETRY_STRATEGIES_AREA_HPP
16 #define BOOST_GEOMETRY_STRATEGIES_AREA_HPP
19 #include <boost/geometry/core/coordinate_type.hpp>
20 #include <boost/geometry/util/select_most_precise.hpp>
22 #include <boost/mpl/assert.hpp>
25 namespace boost { namespace geometry
29 namespace strategy { namespace area
33 #ifndef DOXYGEN_NO_DETAIL
37 // If user specified a CalculationType, use that type, whatever it is
38 // and whatever the Geometry is.
39 // Else, use Geometry's coordinate-type promoted to double if needed.
43 typename CalculationType
47 typedef CalculationType type;
54 struct result_type<Geometry, void>
57 typename coordinate_type<Geometry>::type,
63 #endif // DOXYGEN_NO_DETAIL
70 \brief Traits class binding a default area strategy to a coordinate system
72 \tparam Tag tag of coordinate system
74 template <typename Tag>
75 struct default_strategy
79 false, NOT_IMPLEMENTED_FOR_THIS_COORDINATE_SYSTEM
85 } // namespace services
87 }} // namespace strategy::area
90 }} // namespace boost::geometry
92 #endif // BOOST_GEOMETRY_STRATEGIES_AREA_HPP