47 Commits

Author SHA1 Message Date
Vissarion Fisikopoulos
d3ed449e39 Remove rescaling: remove BOOST_GEOMETRY_USE_RESCALING and update BoostGeometryWriteExpectedFailures 2024-05-29 15:34:00 +03:00
Barend Gehrels
78894ef697 [fix] assign next turn
Fixes issue #1250
2024-03-13 09:29:38 +00:00
Barend Gehrels
455822d6b1 [test] cleanup already succeeding testcases 2022-11-16 14:00:43 +01:00
Barend Gehrels
fcb992de6c [test] add case for issue #1084 2022-11-16 14:00:43 +01:00
Barend Gehrels
2462357198 [buffer] remove close_to_offset and min_distance, add edge_min_fraction 2022-06-29 11:57:24 +02:00
Barend Gehrels
e5613cb8ad [buffer] fix min distance boundary which should not have been used without rescaling
This fixes issue #988
2022-06-29 11:57:24 +02:00
Barend Gehrels
2a7db45d07 [test] take car alternate tests are test properly in old (rescaling) and new (no rescaling) regime 2021-11-17 11:21:54 +01:00
Barend Gehrels
e99cfde120 [intersection] use balance between distance-to-end and length-of-segments to determine to use a or b 2021-09-13 09:27:47 +02:00
Adam Wulkiewicz
08f7e66f79 [test] Drop library dependencies in tests.
If possible drop type_traits, mpl, typeof, foreach, assign.
Rearrange some includes.
2021-07-22 19:46:51 +02:00
Barend Gehrels
1d4b2e5df2 [test] adapt testcases and / or expectations 2021-06-02 11:46:31 +02:00
Barend Gehrels
eee7fc53ea [clusters] detection is refactored to a simpler sweeping algorithm
This fixes a part (around 30%) of the remaining errors in the recursive buffer check
2021-04-07 11:13:20 +02:00
Barend Gehrels
8f95fcb52f [buffer] fix case for issue 803 where an artifact was generated on nearly collinear lines in the buffer 2021-02-25 21:26:42 +01:00
Barend Gehrels
42bd7cfe95 [turns] fix precision when turns are arriving or leaving.
Then their fractions should be 1 or 0 (and not nearly so)
2020-11-25 10:21:16 +01:00
Barend Gehrels
5f677775ef [TEST] Conform the countset, replace many #ifdefs with expectation limits and apply it for float, double, long double (in many tests) 2020-10-21 10:18:56 +02:00
Barend Gehrels
3272220a3c [test][doc] Clean up numeric types in tests and adapt documentation 2020-09-30 11:20:44 +02:00
Barend Gehrels
a09b9f4b51 [test] update testsuite, write expected failures (if all failures are enabled),
use optional counts for difference tests.
2020-06-10 14:27:42 +02:00
Barend Gehrels
2989992d37 [test] Write test configuration and make ccw order in tests optional 2019-11-13 12:52:33 +01:00
Barend Gehrels
af316e7a39 [buffer] fix inside-piece detection for one-sided buffers 2019-10-30 14:44:23 +01:00
Barend Gehrels
8aa31d68cc [buffer] fix round end cap for asymmetric buffers 2019-10-30 12:34:40 +01:00
Barend Gehrels
e4f2bd4ce0 [test] add testcases for mostly left/right on asymmetric buffers,
for flat end on asymmetric buffers,
enable three formerly failing cases,
renamed cases, add settings variable
2019-10-30 11:47:45 +01:00
Barend Gehrels
283a0bc571 [buffer] fix line/line intersection point calculation for some cases,
now using general form (which will be used later more widely). This fixes
some numerical issues.
Including testcase, reported as #596
2019-06-26 14:45:42 +02:00
Barend Gehrels
fb0c9d3b8e [TEST] Minor fixes in buffer tests 2019-05-29 16:54:52 +02:00
Barend Gehrels
861fc38533 [TEST] Unify different defines into BOOST_GEOMETRY_TEST_ENABLE_FAILURES 2019-05-29 15:48:44 +02:00
Barend Gehrels
7f23fcea98 [test] Harmonize define (four variants were used).
If defined, just ignore test_validity flag (such that validity is
always checked), same for sym_difference
2019-03-02 16:08:24 +01:00
Barend Gehrels
e9149afdae [buffer][test] review, use double quote for local includes 2019-02-09 18:31:22 +01:00
Barend Gehrels
99da88ac26 [test][buffer] remove checks for self-intersections which is replaced
by validity
2017-11-29 10:24:00 +01:00
Barend Gehrels
900219f408 [buffer][test] add test_area to ut_settings, and avoid checking the tests
with huge coordinate differences on area, because they are meant for
assertion-checks and they might be invalid,
self-intersecting or empty depending on machine and numerical properties.
2017-11-25 13:19:26 +01:00
Barend Gehrels
751b05ddc1 [buffer] revert one change (should keep multi_index) and
update tests now that validity is improved (but not yet solved).

Also 2 testcases are added generating uu points
2017-11-23 17:03:41 +01:00
Barend Gehrels
55753fc017 [test][buffer] test, by default, for is_valid 2017-11-19 15:53:07 +01:00
Barend Gehrels
56023ee015 [test][buffer] handle the optional right distance differently,
such that it does not have to be specified in case of same as left
2017-11-19 14:06:55 +01:00
Barend Gehrels
5962b10743 [test][buffer] add ut_settings like done in overlay tests, to be able
to add test on validity
2017-11-19 13:59:21 +01:00
Barend Gehrels
1d7d9a9a00 [buffer] fix generation of buffer's interior ring when there is a touching point,
by selecting the right operation
2017-11-15 11:58:27 +01:00
Barend Gehrels
07b96ae068 [test] add still failing testcase 2017-11-08 17:57:13 +01:00
Barend Gehrels
694299b7c7 [buffer] change last fix by adding is_flat_start/end properties to pieces.
These marks are used to check if a turn is really inside the generated buffer,
or on the flat end (then it should be kept).
This will NOT YET work for one-sided buffers.
2017-11-08 17:47:46 +01:00
Barend Gehrels
f6808f8277 [buffer] fix MYSQL testcase 25662426 2017-11-08 15:37:27 +01:00
Adam Wulkiewicz
0e4f4bc9a1 [test][buffer] Add failing case, self-intersecting result of buffer(Ls). 2017-11-06 17:12:48 +01:00
Barend Gehrels
cacb8c4af5 [buffer] discard turns instead of setting them to blocked, because that
might discard valid turns during the colocation check
2016-07-06 12:29:10 +02:00
Adam Wulkiewicz
6fd54716a6 [test][buffer] Add failing test cases.
Add overload of testing function checking the number of polygons and
holes in the buffer output.
2016-06-21 16:46:52 +02:00
Barend Gehrels
dfda1ccbc3 [buffer] fix last cases, in cases where the same offsetted ring is self-intersecting,
the approach using multi_index does not work. We need an extra idenfication
to check the 'sources' of the turns in clusters. Added piece_index for
this purpose.
This can be templated later (so only used for buffer)
2016-03-02 13:09:25 +01:00
Barend Gehrels
438ee64956 [buffer][traverse] fix condition and added image to explain 2016-03-02 10:36:19 +01:00
Barend Gehrels
f46987b804 [test] disable aimes167 currently failing 2016-02-28 13:15:53 +01:00
Barend Gehrels
c7d419785e [overlay] in less_by_segment_ratio, sort turns where operation occurs
(and not in the other turn) first
2015-11-14 11:23:37 +01:00
Adam Wulkiewicz
825815a418 [test][buffer] Add cases causing assertion failure. 2015-09-09 00:50:20 +02:00
barendgehrels
603a2a7c12 Adapt buffer unit tests to change in IP calculation 2015-06-21 22:52:17 +02:00
barendgehrels
452f092e8e [buffer][test] use a rescale policy calculated over the output, instead
of over the input. This shows problems in the newly added test, and also
invalidates one other testcase.

Both problems (self-intersections) should be solved later
2015-06-13 10:32:00 +02:00
Adam Wulkiewicz
45061a202d [test][buffer] Add a case for which not valid buffer is generated. 2015-06-11 17:53:14 +02:00
barendgehrels
525613b461 [buffer][test] renamed testfiles 2015-05-29 19:53:11 +02:00