|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76965 - in trunk/libs/geometry/test/algorithms: . overlay
From: barend.gehrels_at_[hidden]
Date: 2012-02-10 15:46:09
Author: barendgehrels
Date: 2012-02-10 15:46:08 EST (Fri, 10 Feb 2012)
New Revision: 76965
URL: http://svn.boost.org/trac/boost/changeset/76965
Log:
Boost.Geometry pending unit test change
Text files modified:
trunk/libs/geometry/test/algorithms/overlay/overlay_cases.hpp | 7 +++++++
trunk/libs/geometry/test/algorithms/union.cpp | 14 ++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
Modified: trunk/libs/geometry/test/algorithms/overlay/overlay_cases.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/overlay/overlay_cases.hpp (original)
+++ trunk/libs/geometry/test/algorithms/overlay/overlay_cases.hpp 2012-02-10 15:46:08 EST (Fri, 10 Feb 2012)
@@ -553,4 +553,11 @@
"POLYGON ((484 290, 558 359, 543 309, 484 290))"
};
+static std::string ticket_5103[2] =
+ {
+ "POLYGON((-92810838 3618230,-94606872 1822196,-94999302 2214626,-93203268 4010660,-92810838 3618230))",
+ "POLYGON((-95269304 222758,-95260668 419862,-95234760 615696,-95192088 808228,-95132906 996442,-95057214 1178814,-94966028 1354074,-94860110 1520444,-94739968 1676908,-94606618 1822450,-94999048 2214880,-95165164 2033778,-95314770 1838706,-95446850 1631442,-95560388 1413510,-95654368 1186434,-95728282 951992,-95781368 711962,-95813626 468376,-95824294 222758,-95269304 222758))"
+ };
+
+
#endif // BOOST_GEOMETRY_TEST_OVERLAY_CASES_HPP
Modified: trunk/libs/geometry/test/algorithms/union.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/union.cpp (original)
+++ trunk/libs/geometry/test/algorithms/union.cpp 2012-02-10 15:46:08 EST (Fri, 10 Feb 2012)
@@ -302,6 +302,20 @@
test_one<polygon, box, polygon>("box_poly8", "box(0 0, 3 3)",
"POLYGON((2 2, 1 4, 2 4, 3 3, 2 2))",
1, 0, 8, 10.25);
+
+ // Ticket 5103 https://svn.boost.org/trac/boost/ticket/5103
+ // This ticket was actually reported for Boost.Polygon
+ // but it is apparently a difficult case so we check it for Boost.Geometry as well.
+ // SQL Server gives: 2515271331437.69
+ // PostGIS gives: 2515271327070.52
+ // Boost.Geometry gives: 2515271327070.5237746891 (ttmath)
+ // 2515271327070.5156 (double)
+ // 2515271320603.0000 (int)
+ // Note the int-test was tested externally - it is in two points 0.37 off (makes sense).
+ // Because of the width of the polygon (400000 meter) this might indeed cause a substantial difference.
+
+ test_one<polygon, polygon, polygon>("ticket_5103", ticket_5103[0], ticket_5103[1],
+ 1, 0, 25, 2515271327070.5);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk