]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/geometry/test/algorithms/area_multi.cpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / geometry / test / algorithms / area_multi.cpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2 //
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Use, modification and distribution is subject to the Boost Software License,
5 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7
8
9 #include <algorithms/test_area.hpp>
10
11 #include <boost/geometry/geometries/geometries.hpp>
12 #include <boost/geometry/geometries/point_xy.hpp>
13 #include <boost/geometry/geometries/multi_polygon.hpp>
14
15 #include <boost/geometry/io/wkt/wkt.hpp>
16
17
18
19
20 template <typename P>
21 void test_all()
22 {
23 typedef bg::model::multi_polygon<bg::model::polygon<P> > mp;
24 test_geometry<mp>("MULTIPOLYGON(((0 0,0 7,4 2,2 0,0 0)))", 16.0);
25 }
26
27 int test_main( int , char* [] )
28 {
29 test_all<bg::model::d2::point_xy<double> >();
30
31 #ifdef HAVE_TTMATH
32 test_all<bg::model::d2::point_xy<ttmath_big> >();
33 #endif
34
35 return 0;
36 }