Commit Graph

2201 Commits

Author SHA1 Message Date
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
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
Barend Gehrels
64126a9173 [get_turn_info][test] add point_type, rename policy 2018-12-04 23:12:20 +01:00
Barend Gehrels
2653bf5e7b [get_turn_info] Adapt unit test to latest state 2018-12-04 19:42:46 +01:00
Barend Gehrels
5bf8066f36 [get_turn_info] process review remarks, rename policies, methods
Postpone getting pk/qk in collinear_opposite
2018-12-01 13:22:03 +01:00
Barend Gehrels
c12b048742 [test] fix get_turn_info unit test by adding correct strategy 2018-11-28 20:32:21 +01:00
Adam Wulkiewicz
d19254842c Merge branch 'develop' into feature/undefined_cs 2018-11-28 02:35:38 +01:00
Barend Gehrels
a556829348 [is_valid] revert part of commit 465e487b8c 2018-11-25 11:17:28 +01:00
Adam Wulkiewicz
688bb5e290 [test][overlay] Test two specific get_turns L/L cases only for double coordinate type. 2018-11-23 03:05:26 +01:00
Barend Gehrels
445dcac39a [test] fix get_turn_info test for new retrieve_policy 2018-11-21 23:07:23 +01:00
Vissarion Fysikopoulos
c5b0f851a9 [test] Compute intermediate points inexactly 2018-10-29 16:29:20 +02:00
Vissarion Fysikopoulos
87dfbe07a8 [doc] Line interpolate point algorithm and strategies 2018-10-26 17:03:24 +03:00
Vissarion Fysikopoulos
d8b95f0e94 Merge branch 'develop' into feature/line_interpolate_point_2 2018-10-24 16:50:53 +03:00
Vissarion Fysikopoulos
133177a620 [algorithms] Compute length using correct strategy in line interpolate points 2018-10-17 12:38:53 +03:00
Adam Wulkiewicz
a0eb54fc27 [test][within] Update P/B within strategies. 2018-10-15 01:23:15 +02:00
Adam Wulkiewicz
bcd6e69b41 [test][partition] Use disjoint Box/Box strategy in partition test. 2018-10-13 12:46:33 +02:00
Adam Wulkiewicz
d29acd1a2c Merge branch 'develop' into feature/undefined_cs 2018-10-12 22:12:13 +02:00
Adam Wulkiewicz
e70603926d [test][similarity] Fix conversion warning and formatting in discrete_hausdorff_distance test. 2018-10-12 22:11:56 +02:00
Adam Wulkiewicz
ef432a7fd2 Merge branch 'develop' into feature/undefined_cs 2018-10-12 21:19:22 +02:00
Adam Wulkiewicz
c15b32944d [test][is_valid] Add test failing with midpoint in point_on_border. 2018-10-12 19:40:29 +02:00
Mateusz Łoskot
f2d5fae490
Replace boost::ignore_unused_variable_warning with boost::ignore_unused
The former is provided by Boost.ConceptCheck.
The latter is an improved equivalent provided by Boost.Core.

Related to #513
2018-10-12 15:16:46 +02:00
Adam Wulkiewicz
38cbc162a0 Merge branch 'develop' into feature/undefined_cs 2018-10-12 03:52:06 +02:00
Adam Wulkiewicz
9ebdda95cc [test][is_valid] Add test case failing with Midpoint passed to point_on_border. 2018-10-12 03:35:33 +02:00
Adam Wulkiewicz
dcaadf6257 [test][envelope][strategies] Update strategies used for testing. 2018-10-12 03:34:35 +02:00
Vissarion Fysikopoulos
020be50d58 [tests] Add tests for line interpolate points algorithm with multipoints 2018-10-10 17:08:36 +03:00
Vissarion Fysikopoulos
c36a4c29f1 [algorithms] [strategies] [tests] Rename strategy for interpolation of points. 2018-09-25 13:00:34 +03:00
Vissarion Fysikopoulos
53c5dc1e27 [algorithms] [tests] Add special cases for line_interpolate_point algorithm and tests 2018-09-20 15:56:50 +03:00
Vissarion Fysikopoulos
3de61f311c [algoritms] [tests] Add tests for cartesian line_interpolate_point and fix bug in algorithm. 2018-09-19 16:33:32 +03:00
Adam Wulkiewicz
75fa0ec513 [test][similarity] Move test hpp files and remove geometry.hpp include. 2018-09-15 14:05:19 +02:00
Yaghyavardhan singh khangarot
cc69fc28a2 [test][similarity] Added test cases for geographic strategies 2018-08-30 23:22:49 +05:30
Yaghyavardhan singh khangarot
5aa539d58e Updated 2018-08-16 02:10:38 +05:30
yaghyavardhan singh khangarot
f526bb8f54
Merge branch 'develop' into feature/similarity 2018-08-15 20:15:42 +05:30
Yaghyavardhan singh khangarot
cbb635b1f6 [test][similarity] Updated indentation in test files 2018-08-15 19:23:33 +05:30
Yaghyavardhan singh khangarot
60ea4b2ee5 [test][similarity] Updated 2018-08-15 18:23:30 +05:30
Yaghyavardhan singh khangarot
8fdf0ad40a [algorithms] Updated the function's names 2018-08-13 19:53:49 +05:30
Yaghyavardhan singh khangarot
3b22b04588 [test][similarity] Rename Hausdorff Distance and Frechet Distance test files 2018-07-31 22:04:14 +05:30
Adam Wulkiewicz
4782cb191d [test][algorithms] Move relops tests dirs to algorithms/ dir. 2018-07-27 19:00:19 +02:00
Adam Wulkiewicz
9d763b9e52
Merge pull request #499 from vissarion/fix/expand_make_inverse
Fix make_inverse and expand issue
2018-07-09 13:39:36 +02:00
Vissarion Fysikopoulos
f04c25f43d [algorithms] [util] Rename is_inverse utility and update copyright notes 2018-07-09 12:58:34 +03:00
Yaghyavardhan singh khangarot
263a75ff9e [test][similarity] Added test for edge cases 2018-07-07 17:39:50 +05:30
Vissarion Fysikopoulos
9efcb83bb3 [algorithms] [tests] Move include for make.hpp to correct place 2018-07-06 16:08:01 +03:00
Vissarion Fysikopoulos
7072ef0212 [util] Use is_inverse utility to detect inverse boxes 2018-07-06 16:03:56 +03:00
Yaghyavardhan singh khangarot
752f6dfc93 [test][similarity] Updated 2018-07-06 12:15:16 +05:30
Yaghyavardhan singh khangarot
dde8666d16 [algorithms] Updated frechet and hausdorff distance algorithm 2018-07-06 03:51:02 +05:30
Yaghyavardhan singh khangarot
13f12035c8 [test][similarity] Updated test files 2018-07-06 03:49:43 +05:30
Adam Wulkiewicz
9ac132ea0f [test][distance] Remove unused variable. 2018-07-04 16:54:20 +02:00
Vissarion Fysikopoulos
38c77cf435 [algorithms] Avoid normalization for boxes created by make_inverse 2018-07-04 14:52:41 +03:00
Yaghyavardhan singh khangarot
26025e061b [test][similarity] Update tests for frechet distance algorithm 2018-07-03 23:50:18 +05:30
Yaghyavardhan singh khangarot
504848c87b [test][similarity] Update tests for hausdorff distance algorithm 2018-07-03 23:49:33 +05:30
Yaghyavardhan singh khangarot
29866d5f1f [test][similarity] Tests for frechet distance algorithms 2018-07-03 16:27:10 +05:30
Yaghyavardhan singh khangarot
3722dd5402 [test][similarity] Updated tet for hausdorff distance 2018-07-03 03:42:58 +05:30
Yaghyavardhan singh khangarot
57aba31140 [test][similarity] Tests for hausdorff distance algorithm 2018-07-02 03:00:29 +05:30
Vissarion Fysikopoulos
49fd8bcda4 [test] Adding distance tests for spherical and geographic cs and do some renaming 2018-05-25 14:05:33 +03:00
Vissarion Fysikopoulos
b504dcee4b [test] Remove duplicated tests (ar-ar,pl-ar) 2018-05-23 13:14:48 +03:00
Vissarion Fysikopoulos
04b6e0f16c [test] Distance areal-areal 2018-05-23 13:10:00 +03:00
Vissarion Fysikopoulos
1646a67df6 [tests] Tests for areal-box geo distance 2018-05-21 17:06:23 +03:00
Vissarion Fysikopoulos
d91259b4e1 [algorithms] [test] Use s/b distance strategy in linear-box cases 2018-05-21 15:39:12 +03:00
Vissarion Fysikopoulos
4a237e6878 [strategies] [distance] Remove pt-pt distance strategy getters from pt-seg strategy 2018-05-16 17:08:08 +03:00
Vissarion Fysikopoulos
4f755af72b [algorithms] [strategies] [tests] Create unique segment-box distance strategy 2018-05-15 17:11:50 +03:00
Vissarion Fysikopoulos
2de71df58f [test] Distance test between pointlike areal geometries for geo and sph cs 2018-05-10 11:32:35 +03:00
Vissarion Fysikopoulos
a5e6ef069c [test] Distance test between linear areal geometries for geo and sph cs 2018-05-09 16:02:22 +03:00
Adam Wulkiewicz
97b8af1ed7 [test][union] Add spherical A/A case. 2018-05-07 18:36:21 +02:00
Vissarion Fysikopoulos
b2242b34c0 [test] Distance tests for geo and spherical pl-pl and l-l cases 2018-05-07 16:22:12 +03:00
Adam Wulkiewicz
c07e6e6de3 [test][union] Add spherical A/A case. 2018-05-06 02:12:52 +02:00
Vissarion Fysikopoulos
71ce4649a2 [test] Rename consistently distance test filenames 2018-05-04 16:53:30 +03:00
Vissarion Fysikopoulos
9fac4018f3 [test] Move/unify pl-l empty geometry tests functions 2018-05-04 16:25:52 +03:00
Vissarion Fysikopoulos
1fa2ed031c [test] Add missing tests cases for geo pointlike-pointlike distance 2018-05-04 14:09:13 +03:00
Adam Wulkiewicz
61f8b5323a [test][union] Add test case for spherical polygons. 2018-05-04 01:41:37 +02:00
Vissarion Fysikopoulos
990c274705 [test] Tests multilinestrings-box distance 2018-05-03 12:35:16 +03:00
Vissarion Fysikopoulos
c6fb8defa2 [test] Test for linear-box distance 2018-05-03 12:13:51 +03:00
Vissarion Fysikopoulos
2583decd76 [algorithms] [tests] Use azimuth side formula in disjoint 2018-04-26 16:50:36 +03:00
Vissarion Fysikopoulos
2a0b4e6b16 Merge branch 'feature_box_seg' into feature_test_distance_any_geo 2018-04-25 12:13:38 +03:00
Vissarion Fysikopoulos
3f2660de7c [tests] Remove unused strategy pt-box definitions 2018-04-24 10:30:47 +03:00
Vissarion Fysikopoulos
8c0976902d [algorithms] [strategies] In check segment below box function move CS spesific computation to strategies 2018-04-19 16:29:38 +03:00
Vissarion Fysikopoulos
18f1394e30 [alsorithms] [distance] Optimization: avoid to compute vertex twice in some cases 2018-04-17 12:59:52 +03:00
Vissarion Fysikopoulos
7f5236b8fd [algorithms] [distance] Use the whole segment instead of starting point to vertex sub-segment for distance pt-seg computation 2018-04-17 11:55:02 +03:00
Vissarion Fysikopoulos
0a5a4e9cae [test] Update comment for cw rings 2018-04-12 15:49:58 +03:00
Vissarion Fysikopoulos
cc381b3c7f [algorithms] [tests] Fix envelope algorithm for spherical and geographic polygons and rings 2018-04-11 17:12:27 +03:00
Vissarion Fysikopoulos
1484a0eb65 [strategies] [tests] Fix special case for geo pt-seg distance 2018-04-05 14:26:21 +03:00
Vissarion Fysikopoulos
aee17ee094 [strategies] [tests] Activating some tests for pt-seg distance with thomas formula 2018-04-04 11:34:35 +03:00
Vissarion Fysikopoulos
93bd8501b0 [strategies] [algorithms] Azimuth strategy and box mirror function interfaces change 2018-04-02 14:55:34 +03:00
Vissarion Fysikopoulos
1e41a4d516 [strategies] [tests] Fix pt-seg distance cases for south hemisphere 2018-04-02 13:52:00 +03:00
Vissarion Fysikopoulos
350836f3e7 Merge with develop branch 2018-03-29 11:03:20 +03:00
Vissarion Fysikopoulos
df23bb19b8 [strategies] Fix inverse strategy type call from point segment distance computation strategy 2018-03-28 16:54:08 +03:00
Vissarion Fysikopoulos
ab2ab3144d [strategies] [tests] Diagonal case fix for box-box distance 2018-03-28 14:42:08 +03:00
Vissarion Fysikopoulos
51a3a6b78c Merge branch 'feature_box_box_fix' into feature_box_seg 2018-03-28 12:49:24 +03:00
Vissarion Fysikopoulos
37c78acd6c [strategies] [tests] Diagonal case fix for box-box distance 2018-03-28 12:48:58 +03:00
Vissarion Fysikopoulos
3887ceedc3 [tests] South hemispahre box-box tests 2018-03-27 13:49:51 +03:00
Vissarion Fysikopoulos
2b5fc9a9d4 Merge remote-tracking branch 'origin/develop' into feature_box_seg 2018-03-24 15:43:13 +02:00
Vissarion Fysikopoulos
e6e1b1d96f [tests] Crossing prime meridian tests 2018-03-23 16:40:09 +02:00
Vissarion Fysikopoulos
c416382aff [formulas] [tests] Handle cases of geometries in both hemispheres 2018-03-20 16:48:04 +02:00
Adam Wulkiewicz
36f74e3a17 [test][overlay] In get_turns tests print the whole lists of expected and detected turns on error. 2018-03-05 01:44:46 +01:00
Barend Gehrels
0821a112de [test] split big linestring from new test (for Microsoft) 2018-02-22 18:59:16 +01:00
Barend Gehrels
5376fbb302
Merge pull request #460 from boostorg/feature/simplify
Feature/simplify
2018-02-19 18:50:10 +01:00
Barend Gehrels
74d9892bd6 [test] adapt multi test, simplification is changed (but equally good) 2018-02-18 17:47:21 +01:00
Barend Gehrels
23326a7680 [test] adapt test and add testcase needing the new approach 2018-02-18 16:55:31 +01:00
Barend Gehrels
4a3003864e [test] instead of WKT, spatially equality is tested for simplify,
because polygons might be rotated
2018-02-18 16:55:04 +01:00
Barend Gehrels
da16ae8e79 [simplify] revise solution to get opposite instead of closing area
(which fixes some issues) and do more tries (to get more output)
2018-02-18 16:54:30 +01:00
Barend Gehrels
48e6c33ffc [test] add testcase for ticket 13444 which goes wrong with rescaling 2018-02-17 18:51:06 +01:00
Barend Gehrels
3e53d4d456 [simplify] during review, change implementation using rotate instead of clise 2018-02-17 13:50:07 +01:00
Barend Gehrels
c16ad7ddfa [test] fix expectations changed by earlier commit (fraction 1/1000 -> 1/2).
Note that the starting point of the polygon can change shape of simplified
version, and therefore area
2018-02-14 17:08:20 +01:00
Barend Gehrels
8d28489661 [test] test removing duplicate point (if there are 2) and
complete removal of empty interior ring
2018-02-14 17:07:13 +01:00
Barend Gehrels
0ac8b51b41 [test] test simplifying away closing point / whole polygon 2018-02-14 17:06:25 +01:00
Barend Gehrels
b795561e84 [test] also test for omitting polygons/interior rings in output 2018-02-14 15:07:43 +01:00
Barend Gehrels
3335bf970c [test] update test expectations 2018-02-14 15:01:33 +01:00
Barend Gehrels
5bf3d27701 [test] add case for simplify which previously failed within countries test
to the unit test. It checks only for output area.
2018-02-14 12:22:23 +01:00
Barend Gehrels
1ce9583b17 [simplify] fix new behaviour, if sliced it should be closed explicitly
(also to calculate correct areas). Area check with sign instead of boolean.
2018-02-14 11:55:57 +01:00
Barend Gehrels
1fc11a3319 [test] correct closure if necessary, and add define to be able to test faster 2018-01-31 09:52:47 +01:00
Barend Gehrels
945fc9bb94 [test] add unit test for simplification of countries 2018-01-31 09:51:20 +01:00
Barend Gehrels
5534818e0f [simplify] simplify around closing point of ring/polygons
Including unit test.
2018-01-26 17:46:14 +01:00
Barend Gehrels
617b78c420 [test] increase tolerance of multi-point circle buffers, which, having
many intersections, have their collinear points removed and are 1e-5 smaller
2018-01-26 13:25:38 +01:00
Barend Gehrels
f054f092a2 [test] update two other testcases for difference 2018-01-26 13:20:56 +01:00
Barend Gehrels
b55b95846e [test] check validity of failing testcase, it will be solved by no-rescaling.
So accept for now that result is invalid (which is a false positive)
2018-01-26 13:03:25 +01:00
Barend Gehrels
34dfbba271 [test] adapt point expectations for union/difference/intersection
because we now skip some collinear points
2018-01-26 13:02:06 +01:00
Vissarion Fysikopoulos
b4856465c2 [algorithms] [tests] Generic box-segment distance for both cartesian and non-cartesian CS 2018-01-24 17:54:37 +02:00
Adam Wulkiewicz
0dbdd990ea [test][is_valid] Fix unused type warning. 2018-01-23 21:13:02 +01:00
Adam Wulkiewicz
efc9d4ac3d
Merge pull request #441 from awulkiew/feature/area_strategies
Change area strategies interface.
2018-01-22 23:05:17 +01:00
Vissarion Fysikopoulos
3d9cbd87a4 [strategies] Move generic distance pt/box and box/box strategies 2018-01-22 16:48:37 +02:00
Vissarion Fysikopoulos
edf07697e8 Merge remote-tracking branch 'origin/develop' into feature/distance_box 2018-01-22 12:59:25 +02:00
Adam Wulkiewicz
e67bf40b35 Merge branch 'develop' into feature/area_strategies 2018-01-21 02:48:29 +01:00
Adam Wulkiewicz
7d2026dd84 Merge branch 'develop' into feature/projections
Conflicts:
	include/boost/geometry/geometry.hpp
	test/Jamfile.v2
2018-01-21 01:51:04 +01:00
Vissarion Fysikopoulos
57b9cd0bbc [algorithms] [tests] Fix distance segment-box for spehrical and geographic when segments is close to a box corner 2018-01-19 19:12:49 +02:00
Vissarion Fysikopoulos
a51b2dd6ac [algorithm] [test] Meridian case for segment box distance; segments left-right of box 2018-01-18 12:40:09 +02:00
Adam Wulkiewicz
6d0d53c41e Merge branch 'develop' into feature/area_strategies 2018-01-16 14:45:48 +01:00
Adam Wulkiewicz
4b2304c5b7 [test][densify] Test default strategy version of algorithm. 2018-01-15 19:24:42 +01:00
Adam Wulkiewicz
e8fdc21b85 Merge branch 'develop' into feature/complexify 2018-01-15 19:24:08 +01:00
Vissarion Fysikopoulos
0fb5cabe67 [algorithms] Fix box/segment distance for segment bottom of box 2018-01-11 13:01:00 +02:00
Adam Wulkiewicz
b7b7e2ef08 [test][densify] Fix comment. 2018-01-10 23:33:18 +01:00
Adam Wulkiewicz
08dccb1174 [test][densify] Add test cases for open Areal geometries. 2018-01-10 23:04:21 +01:00
Vissarion Fisikopoulos
3ff1887b85
Merge branch 'develop' into feature/distance_box 2018-01-10 15:34:33 +02:00
Barend Gehrels
7b1297bb86 [test] update expectations 2018-01-05 21:56:07 +01:00
Barend Gehrels
6b637c91c0 Merge branch 'feature/intvalid' into develop 2018-01-04 21:42:43 +01:00
Barend Gehrels
26a50a2bbd [traverse] fix case #case_141_multi which is isolated with multiple
connections
2018-01-01 16:28:32 +01:00
Barend Gehrels
bc77fca531 [test] add new case also to intersection/union 2017-12-31 17:17:46 +01:00
Barend Gehrels
9f00c8501b [union] skip discarding i/e turns for union because this causes some turns
to be missed. This fixes the new case #case_recursive_boxes_88
2017-12-31 17:17:21 +01:00
Barend Gehrels
10e79329c1 [test] update a few testcases (comments, defines) 2017-12-31 17:15:45 +01:00
Barend Gehrels
19d0015a81 [test] enable a testcase now fixed 2017-12-29 14:21:04 +01:00
Barend Gehrels
f704579ed0 [overlay] by default use self-turns. This reverses definition
of define SELF to NO_SELF. Including all unit tests.
2017-12-29 13:17:42 +01:00
Adam Wulkiewicz
b4d2f10f2b [test][algorithms] Add centroid() cases and fix MSVC x64 conversion warnings. 2017-12-27 01:55:36 +01:00
Adam Wulkiewicz
c25c4f63e4 [test][algorithms] Add point_on_surface cases using signed integral coordinates. 2017-12-27 01:53:39 +01:00
Adam Wulkiewicz
3b80d1ae71 [test] Fix unused parameter warnings. 2017-12-26 14:12:16 +01:00