Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / geometry / test / algorithms / set_operations / difference / difference_l_a_sph.cpp
1 // Boost.Geometry
2 // Unit Test
3
4 // Copyright (c) 2019, Oracle and/or its affiliates.
5
6 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7
8 // Use, modification and distribution is subject to the Boost Software License,
9 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
10 // http://www.boost.org/LICENSE_1_0.txt)
11
12 #include "test_difference.hpp"
13
14 void test_all()
15 {
16     typedef bg::model::point<double, 2, bg::cs::spherical_equatorial<bg::degree> > point;
17     typedef bg::model::linestring<point> linestring;
18     typedef bg::model::polygon<point> polygon;
19
20     // https://github.com/boostorg/geometry/issues/619
21     
22     test_one_lp<linestring, linestring, polygon>(
23         "issue_619",
24         "LINESTRING(-106.373725 39.638846, -106.373486 39.639362, -106.368378 39.614603)",
25         "POLYGON((-106.374074 39.638593, -106.373626 39.639230, -106.373594 39.639232, "
26                  "-106.373366 39.638502, -106.373299 39.638459, -106.373369 39.638382, "
27                  "-106.374074 39.638593))",
28         2, 5, 0.00044107988528133710);
29 }
30
31 int test_main(int, char* [])
32 {
33     test_all();
34
35     return 0;
36 }