intersection_aa_sph.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Boost.Geometry
  2. // Unit Test
  3. // Copyright (c) 2016, 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_intersection.hpp"
  9. template <typename P>
  10. void test_all()
  11. {
  12. typedef bg::model::polygon<P> polygon;
  13. // https://svn.boost.org/trac/boost/ticket/11789
  14. test_one<polygon, polygon, polygon>("poly_poly_se_ticket_11789",
  15. "POLYGON((-4.5726431789237223 52.142932977753595, \
  16. -4.5743166242433153 52.143359442355219, \
  17. -4.5739141406075410 52.143957260988416, \
  18. -4.5722406991324354 52.143530796430468, \
  19. -4.5726431789237223 52.142932977753595))",
  20. "POLYGON((-4.5714644516017975 52.143819810922480, \
  21. -4.5670821923630358 52.143819810922480, \
  22. -4.5670821923630358 52.143649055226163, \
  23. -4.5714644516017975 52.143649055226163, \
  24. -4.5714644516017975 52.143819810922480))",
  25. 0, 0, 0.0);
  26. }
  27. int test_main(int, char* [])
  28. {
  29. test_all<bg::model::point<double, 2, bg::cs::spherical_equatorial<bg::degree> > >();
  30. return 0;
  31. }