]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/geometry/test/algorithms/overlay/get_turns_linear_linear_geo.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / geometry / test / algorithms / overlay / get_turns_linear_linear_geo.cpp
CommitLineData
b32b8144
FG
1// Boost.Geometry
2// Unit Test
3
4// Copyright (c) 2017, Oracle and/or its affiliates.
5// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
6
7// Use, modification and distribution is subject to the Boost Software License,
8// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
9// http://www.boost.org/LICENSE_1_0.txt)
10
11
12#include "test_get_turns.hpp"
13#include <boost/geometry/geometries/geometries.hpp>
14
15
16template <typename T>
17void test_radian()
18{
19 typedef bg::model::point<T, 2, bg::cs::geographic<bg::radian> > pt;
20 typedef bg::model::linestring<pt> ls;
21 typedef bg::model::multi_linestring<ls> mls;
22
23 bg::srs::spheroid<double> sph_wgs84(6378137.0, 6356752.3142451793);
1e59de90 24 boost::geometry::strategies::relate::geographic<> wgs84(sph_wgs84);
b32b8144
FG
25
26 test_geometry<ls, mls>(
27 "LINESTRING(0 0, -3.14159265358979 0)",
28 "MULTILINESTRING((-2.1467549799530232 -0.12217304763960295,"
29 "-2.5481807079117185 -0.90757121103705041,"
30 "-2.6529004630313784 0.85521133347722067,"
31 " 0.92502450355699373 0.62831853071795796,"
32 "-2.5307274153917754 0,"
33 " 2.8099800957108676 1.0646508437165401,"
34 "-1.6057029118347816 -1.5009831567151219,"
35 " 0.2268928027592626 1.0646508437165401,"
36 "-2.199114857512853 -0.017453292519943278,"
37 " 0 0.31415926535897898,"
38 " 0 0.57595865315812822,"
39 " 1.0471975511965967 -0.73303828583761765,"
40 " 2.1118483949131366 -0.54105206811824158))",
41 expected("mii++")("muu==")("iuu++")("iuu++")("iuu++")("iuu++"),
42 wgs84);
43}
44
45int test_main(int, char* [])
46{
47 test_radian<double>();
48
49 return 0;
50}