difference_l_a_sph.cpp 1.1 KB

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