569 Commits

Author SHA1 Message Date
Barend Gehrels
146cd0e8f1 test: fix unit test failures 2025-04-29 16:50:14 +02:00
Barend Gehrels
805ff654e8 feat: major rewrite of traversal 2025-04-25 19:47:35 +02:00
Vissarion Fisikopoulos
763683eaba Merge pull request #1370 from vissarion/fix/half_period_check
Relax half period check in spheroidal normalization
2025-03-18 14:41:07 +02:00
Vissarion Fisikopoulos
0091b636a1 fix: relax half period checks in normalization of longitudes 2025-03-18 13:20:02 +02:00
Barend Gehrels
b93561729d feat: include changes and tests changes 2025-01-17 19:05:08 +01:00
Barend Gehrels
cda90e5cff refactor: removed unused functionality and minor changes preparing next pr 2025-01-10 18:42:45 +01:00
Barend Gehrels
d7204cff3c test: use geojson in overlay test 2025-01-10 18:32:51 +01:00
Barend Gehrels
41709b5717 test: add test cases 2025-01-10 18:32:05 +01:00
Barend Gehrels
82ef735271 test: add set_ops_areal_areal which tests all operations 2024-12-10 19:02:45 +01:00
Vissarion Fisikopoulos
a9c3a242ca Merge pull request #1346 from barendgehrels/fix/issue-1345
fix: add condition to handle_imperfect_touch
2024-11-25 14:12:16 +01:00
Barend Gehrels
ff033a3d4e fix: avoid blocking rings for some non union conditions
Fixes #893

Fixes #1299
2024-11-24 15:41:59 +01:00
Barend Gehrels
0edb67322d fix: add condition to handle_as_touch
Fixes #1288
2024-11-24 11:10:47 +01:00
Barend Gehrels
aa2162f56b fix: add condition to handle_imperfect_touch
Fixes #1345
2024-11-20 17:20:59 +01:00
Barend Gehrels
d7698b1c8a fix: distinguish turn to discard in case of start turns
Fixes #1342
2024-11-18 18:09:50 +01:00
Barend Gehrels
792428dca4 fix: extra round over ring in #1226 and #1326
This can occur in a sequence of touch and then touch_interior
2024-11-16 08:56:19 +01:00
Barend Gehrels
b98ea78b25 chore: modernize ring and related types to ring_t and related 2024-11-04 19:32:20 +01:00
Barend Gehrels
adc9044da2 test: add test cases for issues fixed in next commit 2024-07-30 19:30:16 +02:00
Vissarion Fisikopoulos
d3ed449e39 Remove rescaling: remove BOOST_GEOMETRY_USE_RESCALING and update BoostGeometryWriteExpectedFailures 2024-05-29 15:34:00 +03:00
Vissarion Fisikopoulos
38051ad095 Remove deprecated rescaling code 2024-05-29 15:29:03 +03:00
Barend Gehrels
52fc1f62b3 [test] add cases for issues #1229 #1231 #1244 and some test refactoring 2024-03-13 09:30:47 +00:00
Barend Gehrels
aa508bf53a fix boost unit test framework in cmake and add cmake files 2024-02-28 11:17:55 +00:00
Vissarion Fisikopoulos
68c086110f Merge pull request #1246 from barendgehrels/fix/compiler-errors-converter-base-of
fix compilation of converter and is_base_of
2024-02-26 11:52:10 +02:00
Vissarion Fisikopoulos
fe18b6cb67 Merge pull request #1237 from vissarion/fix/seg_intersection_on_same_point
Fix numerical issue for segments sharing a common point
2024-02-26 11:42:14 +02:00
Barend Gehrels
123c920b92 fix compilation of converter and is_base_of
by introducting boost::geometry::detail::numeric_cast
2024-02-25 11:07:45 +00:00
Barend Gehrels
16a7423bfa pass strategy to sort by side 2024-02-24 09:26:27 +00:00
Vissarion Fisikopoulos
d87bc244db [test] Remove tests using rescaling 2024-02-13 13:38:31 +02:00
Letu Ren
a12a36f2ff Fix get_distance_measure test failure using MSVC
Log is listed as follows.
```
Running 1 test case...
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_3 ctype: e tr_side: -1 dm_side: 1
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_4 ctype: e tr_side: -1 dm_side: 1
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_5 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_6 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_7 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_8 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_9 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_10 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_11 ctype: e tr_side: -1 dm_side: 0
test/algorithms/overlay/get_distance_measure.cpp(60): error: in "test_main_caller( argc_ argv )": Case: issue_1183_12 ctype: e tr_side: -1 dm_side: 0

*** 10 failures are detected in the test module "Test Program"
```

The reason is that in MSVC the long double type is identical to the double type. We should treat 64-bit long double as double. Modification to float is made for consistency.
2023-12-08 15:56:34 +08:00
Barend Gehrels
4c6b365329 [test] add unit test for issue #1138 which was fixed by eb879fe 2023-09-29 13:00:34 +02:00
Barend Gehrels
0ee3d33de5 [test] add unit test for get_distance_measure showing its failures 2023-09-13 20:48:58 +02:00
Barend Gehrels
eb879fe621 [fix] avoid current get_distance_measure which can make sides indistinguishable 2023-09-13 20:48:58 +02:00
Barend Gehrels
fd209ffbf5 [fix] overlay threshold for sort_by_side
Fixes: issue #1186
2023-09-13 20:29:38 +02:00
Barend Gehrels
88ea9049ff [intersection] remove closing point correctly
* the function (in namespace detail) is split and two parts are renamed on purpose, because functionality is changed
* tests are added
* intersection.cpp split into new file intersection_integer.cpp
* testing point count now if specified
2023-09-13 20:08:21 +02:00
Barend Gehrels
83dab2d98c use auto instead of iterator types, and related 2023-04-23 13:31:00 +02:00
Barend Gehrels
b1bebca453 [union] fix issue 1100 2023-04-19 19:03:16 +02:00
Barend Gehrels
ec7f9c9887 [union] fix missing interior ring and double traversed exterior ring
fixes: #1109 and #1108
keeps fixed: #1081
2023-02-22 13:34:29 +01:00
Barend Gehrels
a908a21efe [overlay] fix cluster by adapting tolerance
Fixes #1081
2022-11-23 14:20:43 +01:00
Barend Gehrels
75742b0d24 [turn] fix distance measure for equal points
Fixes #1076
2022-11-16 14:00:43 +01:00
Tinko Bartels
2ee0967344 Allow start for self-turns for difference overlay operations and enable corresponding test case. 2022-06-06 09:24:37 +02:00
Barend Gehrels
577de29211 [fix] disjoint and relate with const types 2022-04-13 10:09:53 +02:00
Barend Gehrels
c24c971e73 [fix] get_turns with const geometries, as long as its turn_point is writable 2022-03-09 12:15:22 +01:00
Barend Gehrels
9243413cad [test] fix coordinates to make the polygon invalid as designed for both rescaled and without rescaling 2022-02-16 10:32:05 +01:00
Barend Gehrels
9c18680f31 [fix] for integer coordinates, segment intersection now rounds to nearest point 2022-02-07 10:33:15 +01:00
Barend Gehrels
3806c5dc32 [side] use side_by_triangle by default 2021-12-30 11:16:48 +01:00
Barend Gehrels
08116e31e6 [test] cleanup svg generation 2021-12-01 10:09:51 +01:00
Barend Gehrels
48516c8d32 [coordinate_types] support for Boost.Rational and Boost.Multiprecision
including a unit test
2021-09-29 12:44:49 +02:00
Vissarion Fisikopoulos
a34b0f87c4 Merge branch 'develop' into feature/use_side_robust_predicate 2021-09-07 14:07:10 +03:00
Barend Gehrels
1030bd0d70 [test] add cases for issues #690 #875 #876 2021-08-04 14:07:01 +02:00
Adam Wulkiewicz
135b9264fd [test] Fix test case in sort_by_side and gcc variadic macros compilation error. 2021-08-02 16:49:37 +02:00
Adam Wulkiewicz
789281a5d1 Merge pull request #881 from awulkiew/feature/test_dependencies
Drop dependencies in tests.
2021-07-30 13:18:22 +02:00
Barend Gehrels
42edbd30f2 [test] add testcase for issue #888 polygon 53 2021-07-28 13:10:28 +02:00