|
39 | 39 |
|
40 | 40 | g1 = parseWKT("POLYGON EMPTY") |
41 | 41 | g2 = parseWKT("POLYGON EMPTY") |
42 | | -@fact contains(g1, g2) --> false |
43 | | -@fact contains(g1, g2) --> false |
| 42 | +@fact LibGEOS.contains(g1, g2) --> false |
| 43 | +@fact LibGEOS.contains(g1, g2) --> false |
44 | 44 |
|
45 | 45 | g1 = parseWKT("POLYGON((1 1,1 5,5 5,5 1,1 1))") |
46 | 46 | g2 = parseWKT("POINT(2 2)") |
47 | | -@fact contains(g1, g2) --> true |
48 | | -@fact contains(g2, g1) --> false |
| 47 | +@fact LibGEOS.contains(g1, g2) --> true |
| 48 | +@fact LibGEOS.contains(g2, g1) --> false |
49 | 49 |
|
50 | 50 | g1 = parseWKT("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)))") |
51 | 51 | g2 = parseWKT("POLYGON((1 1,1 2,2 2,2 1,1 1))") |
52 | | -@fact contains(g1, g2) --> true |
53 | | -@fact contains(g1, g2) --> false |
| 52 | +@fact LibGEOS.contains(g1, g2) --> true |
| 53 | +@fact LibGEOS.contains(g1, g2) --> false |
54 | 54 |
|
55 | 55 | # GEOSConvexHullTest |
56 | 56 | input = parseWKT("MULTIPOINT (130 240, 130 240, 130 240, 570 240, 570 240, 570 240, 650 240)") |
@@ -197,7 +197,7 @@ equivalent_to_wkt(simplify(g1, 0.0), "POLYGON EMPTY") |
197 | 197 | function test_snap(g1::ASCIIString, g2::ASCIIString, expected::ASCIIString, tol::Float64=0.0) |
198 | 198 | equivalent_to_wkt(snap(parseWKT(g1), parseWKT(g2), tol), expected) |
199 | 199 | end |
200 | | -test_snap("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))", "POINT(0.5 0)", |
| 200 | +test_snap("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))", "POINT(0.5 0)", |
201 | 201 | "POLYGON ((0.5 0, 10 0, 10 10, 0 10, 0.5 0))", 1.0) |
202 | 202 | test_snap("LINESTRING (-30 -20, 50 60, 50 0)", "LINESTRING (-29 -20, 40 60, 51 0)", |
203 | 203 | "LINESTRING (-29 -20, 50 60, 51 0)", 2.0) |
|
0 commit comments