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 #include <geometry_test_common.hpp>
9 
10 #include <boost/geometry/algorithms/perimeter.hpp>
11 
12 #include <boost/geometry/io/wkt/wkt.hpp>
13 
14 #include <boost/geometry/geometries/point_xy.hpp>
15 #include <boost/geometry/geometries/polygon.hpp>
16 #include <boost/geometry/geometries/multi_polygon.hpp>
17 
18 #include <algorithms/test_perimeter.hpp>
19 
20 
21 template <typename P>
test_all()22 void test_all()
23 {
24     test_geometry<bg::model::multi_polygon<bg::model::polygon<P> > >(
25             "MULTIPOLYGON(((0 0,0 1,1 0,0 0)))", 1.0 + 1.0 + sqrt(2.0));
26 }
27 
test_main(int,char * [])28 int test_main( int , char* [] )
29 {
30     test_all<bg::model::d2::point_xy<double> >();
31 
32     return 0;
33 }
34