X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fgeometry%2Ftest%2Falgorithms%2Frelational_operations%2Fcovered_by%2Fcovered_by_sph.cpp;h=a80fb2390394322615a9f7ff99968d7fb1a329dd;hb=b32b81446b3b05102be0267e79203f59329c1d97;hp=710742fd1dacb3aba44d9db85ea59c7941a2c6bc;hpb=215dd7151453fae88e6f968c975b6ce309d42dcf;p=ceph.git diff --git a/ceph/src/boost/libs/geometry/test/algorithms/relational_operations/covered_by/covered_by_sph.cpp b/ceph/src/boost/libs/geometry/test/algorithms/relational_operations/covered_by/covered_by_sph.cpp index 710742fd1..a80fb2390 100644 --- a/ceph/src/boost/libs/geometry/test/algorithms/relational_operations/covered_by/covered_by_sph.cpp +++ b/ceph/src/boost/libs/geometry/test/algorithms/relational_operations/covered_by/covered_by_sph.cpp @@ -229,8 +229,11 @@ void test_point_polygon() "POLYGON((30 0,30 30,90 30, 90 0, 30 0))", false); // extended - test_geometry("POINT(0 -90)", - "POLYGON((0 -80,90 -80, -180 -80, -90 -80, 0 -80))", + test_geometry("POINT(0 90)", + "POLYGON((0 80, 0 81, -90 80, -180 80, 90 80, 0 80))", + true); + test_geometry("POINT(0 90)", + "POLYGON((0 80, -90 80, -90 81, -180 80, 90 80, 0 80))", true); test_geometry("POINT(0 89)", "POLYGON((0 80,-90 80, -180 80, 90 80, 0 80))", @@ -238,6 +241,50 @@ void test_point_polygon() test_geometry("POINT(-180 89)", "POLYGON((0 80,-90 80, -180 80, 90 80, 0 80))", true); + test_geometry("POINT(0 -90)", + "POLYGON((0 -80,90 -80, -180 -80, -90 -80, 0 -80))", + true); + test_geometry("POINT(0 -89)", + "POLYGON((0 -80,90 -80, -180 -80, -90 -80, 0 -80))", + true); + test_geometry("POINT(1 -90)", + "POLYGON((0 -80,90 -80, -180 -80, -90 -80, 0 -80))", + true); + test_geometry("POINT(1 -89)", + "POLYGON((0 -80,90 -80, -180 -80, -90 -80, 0 -80))", + true); + test_geometry("POINT(1 90)", + "POLYGON((0 80,-90 80, -180 80, 90 80, 0 80))", + true); + test_geometry("POINT(1 90)", + "POLYGON((0 80,-90 80, -180 80, 90 80, 0 80))", + true); + + + + // MySQL report 08.2017 + test_geometry("POINT(-179 0)", + "POLYGON((0 0, 0 2, 2 0, 0 -2, 0 0))", + false); + // extended + test_geometry("POINT(179 0)", + "POLYGON((0 0, 0 2, 2 0, 0 -2, 0 0))", + false); + test_geometry("POINT(180 0)", + "POLYGON((0 0, 0 2, 2 0, 0 -2, 0 0))", + false); + test_geometry("POINT(-179 0)", + "POLYGON((-10 -10, -10 10, 10 10, 10 -10, -10 10))", + false); + test_geometry("POINT(179 0)", + "POLYGON((-10 -10, -10 10, 10 10, 10 -10, -10 10))", + false); + test_geometry("POINT(-179 0)", + "POLYGON((0 0, 0 1, 1 0, 0 -1, 0 0))", + false); + test_geometry("POINT(179 0)", + "POLYGON((0 0, 0 1, 1 0, 0 -1, 0 0))", + false); }