Commit Graph

2924 Commits

Author SHA1 Message Date
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
Vissarion Fisikopoulos
a38924a0f2
Merge pull request #595 from vissarion/fix/dist_pt_seg_short
Fix inaccuracy in geographic point-segment distance computation
2019-06-25 12:59:49 +03:00
Vissarion Fysikopoulos
5e0e1cf75c [strategy] Put bisection method for distance pt-sgmt into detail namespace 2019-06-25 12:31:30 +03:00
Adam Wulkiewicz
970bce222f [test] Update tests WRT recent changes related to CS-specific strategies propagation. 2019-06-24 12:21:19 +02:00
Adam Wulkiewicz
bfdd09c12c [test][overlay] Pass intersection strategy in sort_by_side test. 2019-06-04 20:45:59 +02:00
Vissarion Fysikopoulos
cc15b8cbd0 [tests] Remove output strings from cross_track geo distance 2019-06-03 11:54:15 +03:00
Barend Gehrels
d0981b0a98 [TEST] Remove define for union 2019-05-29 16:56:25 +02:00
Barend Gehrels
fb0c9d3b8e [TEST] Minor fixes in buffer tests 2019-05-29 16:54:52 +02:00
Barend Gehrels
c59ad6a07b [TEST] Add robustness test to find corner cases in floating point precision 2019-05-29 16:47:46 +02:00
Barend Gehrels
1465e26502 [TEST] Add two testcases 2019-05-29 16:42:57 +02:00
Barend Gehrels
5eed0d779d [TEST] Add extra define BOOST_GEOMETRY_USE_KRAMER_RULE to indicate
using the Kramer-rule intersection strategy.
This can change some test behaviour
2019-05-29 15:53:29 +02:00
Barend Gehrels
861fc38533 [TEST] Unify different defines into BOOST_GEOMETRY_TEST_ENABLE_FAILURES 2019-05-29 15:48:44 +02:00
Vissarion Fysikopoulos
5cd6314aca [tests] Minor fixes in distance pt-segment 2019-05-29 15:53:58 +03:00
Vissarion Fysikopoulos
ea6dcda82c [strategies] [test] Use correctly units in pt-seg distance geo strategy 2019-05-28 16:37:59 +03:00
Barend Gehrels
229b42aee8 [TURNS] Disable start-turns, and take the closer point to measure distance,
which makes that measurement more precise.
2019-05-15 12:55:38 +02:00
Barend Gehrels
bcb9f60bec [test] add testcases 17,18,19,20 2019-05-01 22:08:57 +02:00
Barend Gehrels
9d5b160584
Merge pull request #582 from barendgehrels/feature/add_start_turn
Feature/add start turn
2019-05-01 22:08:02 +02:00
Tinko Bartels
cfb36adf6e Matrix transformer support for arbitrary dimensions 2019-04-25 12:22:52 +02:00
Vissarion Fysikopoulos
f24542af2e [test] Distance pt-seg; another test case for point on the othe side of segment 2019-04-24 17:40:21 +03:00
Vissarion Fysikopoulos
bdf759a1d1 [test] Distance pt-seg; added test case; fix initializers; remove redundant function parameters 2019-04-24 16:43:28 +03:00
Vissarion Fysikopoulos
1ec4137c9b [test] Minor change in distance pt-sgmt test case 2019-04-24 15:40:29 +03:00
Vissarion Fysikopoulos
0ab8a04e91 [test] Tests for distance pt-sgmt strategy 2019-04-24 12:22:39 +03:00
Vissarion Fysikopoulos
17831d71f8 [strategies] Bisection method for geo distance pt-sgmt 2019-04-23 16:50:10 +03:00
Barend Gehrels
b84918fcde [test] add testcase for FP precision without rescaling 2019-04-17 15:10:04 +02:00
Adam Wulkiewicz
be7b5e71ec [test] Replace tab with spaces. 2019-04-12 15:42:18 +02:00
Adeel Ahmad
c5b684f74c
[tests]: Add test for small angles for Kayney's inverse method 2019-04-06 21:16:44 +02:00
Barend Gehrels
de5187f39c [test] update testcases w.r.t. disabling rescaling, add two cases 2019-04-03 13:58:40 +02:00
Adeel Ahmad
9885d3b68a
[test] Add tests involving tiny angles for latitude, longitude, and azimuth 2019-03-31 11:17:17 +02:00
Adam Wulkiewicz
c659de4f41 [test][buffer] Fix type. 2019-03-28 14:08:19 +01:00
Vissarion Fisikopoulos
8f69777215
Fix disjoint(segment, box) in spherical_equatorial and geographic CS (#580)
* [algorithms] Remove azimuth optimization from spherical/geo disjoint segment-box
2019-03-27 10:01:14 +02:00
Adam Wulkiewicz
a43e25cfef [test][disjoint] Add spherical cases (issues: 466, 579). 2019-03-26 17:43:49 +01:00
Adam Wulkiewicz
30ebfb8cd5 [test][disjoint] Add failing cases of Seg/Box (issue 579). 2019-03-25 20:15:53 +01:00
Adam Wulkiewicz
7c82a8f14d [test][envelope] Add cases of spherical polygons (issues 466 and 471). 2019-03-21 20:19:15 +01:00
Vissarion Fysikopoulos
265517f69a [test] Add test for series expansion comparision with geographiclib 2019-03-20 14:43:38 +02:00
Vissarion Fysikopoulos
220fe13890 [strategy][test] Robust acos call and tests 2019-03-15 14:43:45 +02:00
Adam Wulkiewicz
392f73e796
Merge pull request #570 from vissarion/fix/vertex_longitude
Fix for distance between geometries
2019-03-14 19:41:27 +01:00
Adam Wulkiewicz
e22d2410c8
Merge pull request #567 from awulkiew/fix/direct_formulas
Allow negative distance in direct formulas.
2019-03-14 19:40:28 +01:00
Vissarion Fysikopoulos
4d5aedf648 [test] Add test case that fail without swapping longitudes in box segment strategy 2019-03-13 15:43:57 +02:00
Barend Gehrels
96956c3519 [test] Change expectations because of failing tests on MSVC 2019-03-13 14:35:29 +01:00
Barend Gehrels
89b64c416a [test] Simplify conditional code as done earlier 2019-03-13 13:57:16 +01:00
Barend Gehrels
baaf2e3284 [test] add testcases for reported issues #566, and to mailing list at March 7 2019-03-13 13:56:44 +01:00
Adam Wulkiewicz
c7a4c12f71 [test][formulas] Add tests for negative distance in direct formulas. 2019-03-12 01:42:39 +01:00
Adam Wulkiewicz
4a6d8075ec Merge branch 'develop' into feature/point_order 2019-03-08 16:56:33 +01:00
Barend Gehrels
6344e3c72e
Merge pull request #563 from barendgehrels/enhance/more-remove-rescale-preparations
Enhance/more remove rescale preparations
2019-03-06 09:47:34 +01:00
Barend Gehrels
24455aeab8 changes in comments 2019-03-05 20:31:20 +01:00
Adam Wulkiewicz
c2d6b56521 [test][line_interpolate] Fix dereference of non-dereferencable iterators. Remove typename keyword. Improve error message. 2019-03-04 18:31:02 +01:00
Barend Gehrels
3a025c43d5 [test] add testcase for issue #369. For this, add logarithmic
option to compare very small areas. Use this too in county and aimes
2019-03-02 19:13:15 +01:00
Barend Gehrels
afc2c87e02 [test] Add testcase for reported issue #548, which succeeds without rescaling 2019-03-02 17:51:09 +01:00
Barend Gehrels
e7ddb0a056 [test] Add testcase for reported issue 555: buffer deflate omits interior ring
It is OK when rescaling is turned off
2019-03-02 17:26:07 +01:00
Barend Gehrels
5314fdd8d9 [test] Simplify settings
(add one previously deleted validity value)
2019-03-02 17:07:59 +01: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
59c795a967 [test] Verify testcases (union, intersection, diff, buffer) w.r.t. turning off
rescaling.
Because of the preparation steps, many tests already succeed
2019-03-02 15:57:29 +01:00
Barend Gehrels
07dd079033 [CONFIG] Use a positive define (USE_RESCALING) instead of an unclear negative
one (NO_ROBUSTNESS). Precedes removing of the rescaling.
2019-03-02 13:39:50 +01:00
Adam Wulkiewicz
8f2f5932a1 [test][point_order] Add tests for calculate_point_order() algorithm. 2019-03-01 21:28:04 +01:00
Adam Wulkiewicz
deee6ac6d7
Merge pull request #559 from barendgehrels/enhance/remove_no_self_defines
Enhance/remove no self defines
2019-02-27 17:12:56 +01:00
Vissarion Fisikopoulos
1c0f3e398a
Merge branch 'develop' into feature/line_interpolate_point_2 2019-02-27 15:13:37 +02:00
Barend Gehrels
d67688ee2b [TEST] Remove defines, in general "not no_selfturns" (= use them)
and remove other branch not using them.
Because self turns are now stable, default, and without them does not need
to be unit tested.
Plus it can make test cases with/without rescaling way more complex.
2019-02-23 14:35:34 +01:00
Barend Gehrels
cb27d880c7 [TEST] Remove NO_SELF from svg filename 2019-02-23 14:31:04 +01:00
Vissarion Fysikopoulos
03036b4b62 [algorithm] [strategy] [test] [doc] Rename line_interpolate_point to line_interpolate 2019-02-19 16:32:22 +02:00
Vissarion Fysikopoulos
d0331aa3eb [algorithm] [test] Assertion for possible division with zero in line_interpolate 2019-02-18 14:43:53 +02:00
Vissarion Fysikopoulos
f83cb027b5 [strategy] [test] Use radius in spherical line_interpolate strategy 2019-02-18 14:04:32 +02:00
Vissarion Fysikopoulos
4646d12521 Merge remote-tracking branch 'origin/develop' into feature/line_interpolate_point_2 2019-02-15 15:54:29 +02:00
Vissarion Fysikopoulos
8700f3703d [test] Add tests for non standard spheroids and fix andoyer cases in line_interpolate 2019-02-14 16:39:11 +02:00
Barend Gehrels
c46e4625a7 [buffer] rename strategy (review result) 2019-02-13 11:44:13 +01:00
Vissarion Fysikopoulos
0ab93f5280 [strategy] Remove azimuth precomputation from line_interpolate strategies 2019-02-12 16:54:04 +02:00
Vissarion Fysikopoulos
127de58eaf [test] Test edge cases for line_intrpolate 2019-02-11 17:03:15 +02:00
Vissarion Fysikopoulos
033c9c7aaf [test] Test for input distance longer than linestring length for line_intrpolate 2019-02-11 16:37:08 +02:00
Vissarion Fysikopoulos
6d837b55ef [test] Test for negative input distance for line_intrpolate 2019-02-11 16:05:50 +02:00
Vissarion Fysikopoulos
c5354453ac [test] Test for line_intrpolate regarding round off errors 2019-02-11 15:58:17 +02:00
Barend Gehrels
e9149afdae [buffer][test] review, use double quote for local includes 2019-02-09 18:31:22 +01:00
Barend Gehrels
1bc84aeef8 Merge branch 'develop' into feature/buffer_point_geographic 2019-02-09 17:03:40 +01:00
Adam Wulkiewicz
4714ea458c
Merge pull request #553 from vissarion/bug/distance_spheroid
Pass spheroid correctly in geographic comparable strategies
2019-02-08 16:49:47 +01:00
Barend Gehrels
a1aa082c17
Merge pull request #551 from barendgehrels/feature/remove_rescaling_preparations
Feature/remove rescaling preparations
2019-02-07 19:09:54 +01:00
Vissarion Fysikopoulos
05102586b0 [strategy] [test] Return strategy correctly from get_comparable in box-box; add tests for those cases 2019-02-06 15:20:53 +02:00
Vissarion Fysikopoulos
b242878b8e [test] Remove some unused parameters 2019-02-06 15:14:49 +02:00
Vissarion Fysikopoulos
da6a2dd186 [strategy] [test] Return strategy correctly from get_comparable in pt-seg and pt-box; add tests for those cases 2019-02-06 15:11:59 +02:00
Adam Wulkiewicz
eb73b0c03f [test] Use correct namespaces in proj4 wrapper. 2019-02-02 12:36:48 +01:00
Adam Wulkiewicz
e83c8404b5 [test][srs] Improve proj4 wrapper. 2019-02-01 01:07:35 +01:00
Barend Gehrels
e9b81ed877 [test] add testcases, minor changes in existing testcases 2019-01-30 16:22:02 +01:00
Adam Wulkiewicz
2e19b75876 [setops] Disable validity testing for several cases. 2019-01-25 21:13:28 +01:00
Vissarion Fysikopoulos
b02c5e2aae [algorithm] [strategy] Change line_interpolate_point to use distance instead of fraction 2019-01-25 16:49:03 +02:00
Barend Gehrels
809d33bb5a Merge branch 'develop' of https://github.com/boostorg/geometry into develop 2019-01-23 21:58:57 +01:00
Barend Gehrels
38cf379448 [test] Add testcase for reported issue 2019-01-23 21:58:51 +01:00
Barend Gehrels
7cbfd53bf2 [test] add missing area strategy 2019-01-16 13:08:23 +01:00
Barend Gehrels
787a4071c5 [test] Add new test to Jamfile 2019-01-16 12:07:47 +01:00
Barend Gehrels
fc312fed46 [test] use envelope_strategy to support unit test 2019-01-09 20:34:23 +01:00
Barend Gehrels
253d210c53 Merge branch 'develop' into feature/buffer_point_geographic 2019-01-09 20:24:31 +01:00
Barend Gehrels
5348d02ae3 [test] add unit test for geographic point buffer 2019-01-09 16:30:33 +01:00
Barend Gehrels
9ce1c0b7c7 [test] Add area strategy to unit test function to be able to use another
than the default
2019-01-09 16:28:49 +01:00
Adam Wulkiewicz
6e75922962 [test][within] Add missing include. 2019-01-03 15:50:56 +01:00
Barend Gehrels
3f26e34f43 [test] Remove side-of-intersection from tests 2019-01-01 12:51:46 +01:00
Barend Gehrels
d5e3fe996d [test] pass the buffer itself 2018-12-19 11:49:35 +01:00
Barend Gehrels
78735951c8 [test] add number of points to unit test settings 2018-12-19 11:16:32 +01:00
Adam Wulkiewicz
5f39dfe6af [test][algorithms] Add missing includes in hausdorff distance test. 2018-12-18 04:33:42 +01:00
Vissarion Fysikopoulos
d553d82d56 Resolve conflicts and merge with develop 2018-12-17 14:02:20 +02:00
Adam Wulkiewicz
f6826c43b2 [test][strategies] Rename envelope_segment test file. 2018-12-16 15:41:39 +01:00
Adam Wulkiewicz
4c099bdd50 Merge branch 'develop' into feature/undefined_cs 2018-12-16 15:16:39 +01:00
Adam Wulkiewicz
60d1f8fa28
Merge pull request #531 from barendgehrels/feature/get_turn_info_add_retrieve_policy
Feature/get turn info add retrieve policy
2018-12-14 22:46:47 +01:00
Barend Gehrels
b5d44b7428 [test] fix get_turn_info test 2018-12-08 18:55:47 +01:00
Barend Gehrels
2c14e92289 [test] put ranges first 2018-12-08 17:59:02 +01:00