X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fgeometry%2Ftest%2Falgorithms%2Frelational_operations%2Ftouches%2Ftouches.cpp;h=80db2d9b965fc7a577986a86f1eba434001751ff;hb=b32b81446b3b05102be0267e79203f59329c1d97;hp=536250ceee395b813fe9a39a6b23c45f9e32df19;hpb=215dd7151453fae88e6f968c975b6ce309d42dcf;p=ceph.git diff --git a/ceph/src/boost/libs/geometry/test/algorithms/relational_operations/touches/touches.cpp b/ceph/src/boost/libs/geometry/test/algorithms/relational_operations/touches/touches.cpp index 536250cee..80db2d9b9 100644 --- a/ceph/src/boost/libs/geometry/test/algorithms/relational_operations/touches/touches.cpp +++ b/ceph/src/boost/libs/geometry/test/algorithms/relational_operations/touches/touches.cpp @@ -16,6 +16,7 @@ template void test_all() { + typedef bg::model::multi_point

mpoint; typedef bg::model::ring

ring; typedef bg::model::polygon

polygon; typedef bg::model::linestring

linestring; @@ -152,6 +153,10 @@ void test_all() test_touches("POINT(0 0)", "MULTILINESTRING((0 0, 2 2, 10 2),(5 5, 6 6))", true); test_touches("POINT(0 0)", "MULTILINESTRING((0 0, 2 2, 10 2),(0 0, 6 6))", false); + // MultiPoint-Polygon + test_touches("MULTIPOINT(40 50, 30 50)", "POLYGON((40 40,40 60,60 60,60 40,40 40))", true); + test_touches("MULTIPOINT(40 50, 50 50)", "POLYGON((40 40,40 60,60 60,60 40,40 40))", false); + // Linestring-Linestring test_touches("LINESTRING(0 0,2 0)", "LINESTRING(0 0,0 2)", true); test_touches("LINESTRING(0 0,2 0)", "LINESTRING(2 0,2 2)", true);