|
3 | 3 | // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. |
4 | 4 | // Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland. |
5 | 5 |
|
6 | | -// This file was modified by Oracle on 2013, 2014. |
7 | | -// Modifications copyright (c) 2013-2014 Oracle and/or its affiliates. |
| 6 | +// This file was modified by Oracle on 2013-2020. |
| 7 | +// Modifications copyright (c) 2013-2020 Oracle and/or its affiliates. |
8 | 8 |
|
9 | 9 | // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle |
10 | 10 |
|
@@ -209,8 +209,15 @@ void test_all() |
209 | 209 | // Unequal (but same area) |
210 | 210 | test_geometry<ring, ring>("poly_uneq", case_p1, "POLYGON((1 1,1 3,3 3,1 1))", false); |
211 | 211 |
|
| 212 | + // Note that POLYGON((0 0,0 4,4 4,0 0),(1 1,2 1,2 2,1 2,1 1)) |
| 213 | + // below is invalid. equals() returns different result than |
| 214 | + // relate() with equals mask in this case because for areal |
| 215 | + // geometries different algorithms is used, i.e. collect_vectors. |
| 216 | + |
212 | 217 | // One having hole |
213 | | - test_geometry<polygon, polygon>("poly_hole", "POLYGON((0 0,0 4,4 4,0 0))", "POLYGON((0 0,0 4,4 4,0 0),(1 1,2 1,2 2,1 2,1 1))", false); |
| 218 | + test_geometry<polygon, polygon>("poly_hole", |
| 219 | + "POLYGON((0 0,0 4,4 4,0 0))", |
| 220 | + "POLYGON((0 0,0 4,4 4,0 0),(1 1,2 1,2 2,1 2,1 1))", false); |
214 | 221 |
|
215 | 222 | // Both having holes |
216 | 223 | test_geometry<polygon, polygon>("poly_holes", |
|
0 commit comments