Commit Graph

2924 Commits

Author SHA1 Message Date
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
Adeel Ahmad
73a2e2b8a4 Merge branch 'feature/geodesic_direct' into feature/karney_inverse 2018-07-09 16:15:41 +05: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
fbc79c807b Merge remote-tracking branch 'origin/develop' into feature_test_distance_any_geo 2018-07-04 16:16:51 +03:00
Vissarion Fysikopoulos
c1dd9278b9 Fix conflicts by merging to develop 2018-07-04 15:55:09 +03: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
Adeel Ahmad
535ae96a86
[test] Add nearly antipodal points dataset for inverse geodesic problem
These values are collected from GeodTest which is associated
with GeographicLib:
https://zenodo.org/record/32156

The conversion to C++ array format is done using this Python script:
https://github.com/adl1995/boost-geometry-extra/blob/master/geographiclib-dataset-parse-inverse.py

Geodesic scale (M12) is absent from the GeodTest dataset, so it is
manually generated using GeographicLib using this C++ script:
https://github.com/adl1995/boost-geometry-extra/blob/master/geographicLib-direct-antipodal.cpp
2018-07-03 13:31:15 +05:00
Adeel Ahmad
4f04310859
[formulas][test] Add Karney's inverse method in inverse test cases
The compilation is successful with gcc version (7.2.0),
but not with version (5.4.1). The accepted tolerance
is set to (0.0000001). Currently, all tests are not
passing, which indicates an error in the calculation.

Additionally, some changes have been made in
karney_inverse.hpp
2018-07-03 11:02:48 +05:00
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
Adeel Ahmad
687df8e18a
Merge branch 'develop' into feature/geodesic_direct
Conflicts:
	include/boost/geometry/util/math.hpp
	test/formulas/direct.cpp

The conflicting files have been updated.
2018-06-29 14:31:15 +05:00
Adam Wulkiewicz
5729e6f410 Merge branch 'develop' into feature/projections_interface 2018-06-28 23:40:13 +02:00
Adam Wulkiewicz
b945bbba97 [test][srs] Update projections/transformations tests after implementation of new parameters. 2018-06-28 04:02:49 +02:00
Brian Kuhl
3ddc84a852 change <proj to fully qualified <boost::geometry::srs::par4::proj
to avoid confusing clang when compiling with the Dinkum STL
which has inline proj() in global namespace
2018-06-24 23:05:58 -04:00
Adeel Ahmad
78411f63c8
[doc][util][formulas][test] Add copyright information in updated files 2018-06-18 18:05:11 +05:00
Vissarion Fysikopoulos
12f7a2239b [formulas] Add coordinates and reverse azimuth flags to spherical direct formula 2018-06-18 14:31:45 +03:00
Vissarion Fysikopoulos
cc2ded01ee [formulas] [tests] Change thomas direct interface 2018-06-18 14:08:58 +03:00
Vissarion Fysikopoulos
88469892dd [formulas] Rename elliptic_meridian_arc formula to meridian 2018-06-18 12:52:05 +03:00
Vissarion Fysikopoulos
c1299d7a32 [formulas] [tests] Add revarse_azimuth and quantities computation to direct meridian formula plus tests 2018-06-18 12:03:13 +03:00
Vissarion Fysikopoulos
bc3189f9fd [formulas] [tests] Interface for direct meridian formula and tests 2018-06-15 10:25:05 +03:00
Vissarion Fysikopoulos
97fa9c177f [tests] Adding tests for spherical and thomas 1st order direct formulas 2018-06-12 16:00:09 +03:00
Vissarion Fysikopoulos
afb575fbf5 [tests] Add tests for meridian direct formula 2018-06-12 15:52:58 +03:00
Adeel Ahmad
2cba2fa83f
[test] Calculate geodesic scale (M12) using high precision arithmetic
Instructions for building GeographicLib are given here:
https://geographiclib.sourceforge.io/html/highprec.html

It requires the use of libquadmath package, which is present
in g++-7 by default. The cmake command used is:
cmake -DCMAKE_CXX_COMPILER=g++-7 -DGEOGRAPHICLIB_PRECISION=4 ..

Internally, GeographicLib makes use of float128 as part of Boost
Multiprecision library. To output full precision values, use:
std::setprecision(std::numeric_limits<float128>::max_digits10)
2018-06-12 12:00:52 +05:00
Adeel Ahmad
fe1b9ff8ba
[test] Update geodesic scale (M12) in GeographicLib dataset
M12 is calculated manually using GeographicLib. Previously,
GEOGRAPHICLIB_PRECISION was set to 2 (default) with series
order set to 6. The updated values are generated with
GEOGRAPHICLIB_PRECISION set to 3 and series order set to 7.

Build instructions are provided here:
https://geographiclib.sourceforge.io/html/install.html
2018-06-09 16:17:42 +05:00
Adeel Ahmad
96074e2ab2
[test] Use series order 2 for Karney's direct method
Boost Geometry dataset is created with series order 2. Therefore,
the tests fail at all other values.
2018-06-09 16:15:55 +05:00
Phillip Palk
43538e5f24 [test][iterators] add test case that demonstrates SEGFAULT when using closing_iterator and ever_circling_iterator with transformed ranges. 2018-06-07 10:07:33 +10:00
Adeel Ahmad
a10815366a
[test] Add comment providing dataset source and how it is parsed 2018-06-05 10:21:49 +05:00
Adeel Ahmad
1ed5f103f4
[formulas] Move SeriesOrder to the end of template parameter list 2018-06-04 19:09:07 +05:00
Adeel Ahmad
6ff97a6991
[test] Test Karney's method on antipodal points dataset 2018-05-31 16:36:16 +05:00
Adeel Ahmad
3c21b13c91
[test] Add geodesic length to antipodal points dataset
The geodesic length is calculated manually using GeographicLib/Geodesic.hpp
in C++. However, this value differs when calculated using the
CLI tool GeodSolve.
2018-05-31 16:28:09 +05:00
Adeel Ahmad
fdbb3886d3
[test] Add nearly antipodal points dataset for direct geodesic problem
Dataset is collected from:
https://zenodo.org/record/32156

It is then parsed using a Python script.
2018-05-30 12:14:33 +05:00
Adeel Ahmad
afe7bc679c
[test] Add direct Karney's method to direct.cpp test cases 2018-05-28 16:46:20 +05:00
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
Adam Wulkiewicz
06e53eb573 Merge branch 'develop' into fix/intersection_strategies 2018-04-12 16:20:16 +02:00
Adam Wulkiewicz
d77d3af272 [test][strategies] Add test for short sph and geo collinear segments. 2018-04-12 16:14:15 +02: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
Adam Wulkiewicz
49b9e7bfa3
Merge pull request #465 from awulkiew/feature/projections_update
Update implemented projections to proj4 5.0.0 state.
2018-04-07 14:55:17 +02: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
d6569be95b Update include files for srs.hpp 2018-03-24 16:00:58 +02: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
2b0f326249 [test][srs] Improve error messages in projections tests. 2018-03-18 03:15:34 +01:00
Adam Wulkiewicz
2490451d8e [srs][test] Do not include projections by default (due to possible clashes with macros). 2018-03-15 20:37:34 +01:00
Adam Wulkiewicz
d221e44988 [test][srs] Update/add projections tests. 2018-03-09 02:50:45 +01:00
Adam Wulkiewicz
621ec9598e [test][srs] Enable igh projection test case. 2018-03-07 22:55:25 +01:00
Adam Wulkiewicz
b5101c1aaf [test][srs] Enable goode projection test case. 2018-03-07 19:13:50 +01:00
Adam Wulkiewicz
66c3204822 [test][srs] Rearrange projection_selftest cases - separate _e and _s. 2018-03-07 17:17:58 +01:00
Adam Wulkiewicz
e515520603 [test][srs] Update aeqd projection expected results (proj4 4.9.3). 2018-03-07 11:27:03 +01:00
Adam Wulkiewicz
d9670e4da0 [test][srs] Fix memory leak in projection_selftest when TEST_WITH_PROJ4 is defined. 2018-03-07 11:26:16 +01: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
Adam Wulkiewicz
c5535158bb [test][srs] Remove unneeded #include from projections test. 2018-02-23 22:03:45 +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
85b6675954 Merge branch 'develop' into feature/simplify 2018-02-14 09:50:52 +01:00
Adam Wulkiewicz
26ada1dc6e [test][srs] Fix missing field initializer warning (clang-3.0 -Wall -Wextra). 2018-02-06 15:12:34 +01:00
Adam Wulkiewicz
da38ece6d2 [test][srs] Fix missing field initializer warnings (clang++-5.0 -Wall -Wextra). 2018-02-01 03:41:22 +01:00
Barend Gehrels
41ca8baee7 Merge branch 'develop' into feature/remove_rescaling 2018-01-31 09:56:48 +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
Adam Wulkiewicz
5fabea8e2c [test][srs] Add tests for new generic is_param metafunctions. 2018-01-29 22:18:40 +01:00
Adam Wulkiewicz
b3d3acc83d [test][srs] Fix unused variable and parameter warnings. 2018-01-29 01:57:11 +01:00
Adam Wulkiewicz
350f4990b3 [test][srs] Fix unused parameter warning. 2018-01-28 03:30:44 +01:00
Adam Wulkiewicz
9373a5f271 [test][srs] Add par4 metafunctions compilation test. 2018-01-28 02:22:06 +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
Barend Gehrels
d66df075fe [test] reincarnate test of segment intersection 2018-01-24 18:04:53 +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
7ebafcdb90 [test][srs] Add missing braces in projections test cases array. 2018-01-23 21:13:42 +01: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
Adam Wulkiewicz
8df7774495 [test] Add minimal test and disable the rest of the tests for TRAVIS. 2018-01-20 01:30:10 +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
Adam Wulkiewicz
278acf8ed1 [test][strategies] Properly initialize wkt2 member of helper class strategy_base. 2017-12-26 14:11:50 +01:00
Adam Wulkiewicz
7ebd447aee [test][algorithms] Use new area strategy interface. 2017-12-22 03:40:01 +01:00
Vissarion Fysikopoulos
27d8955188 [algorithms] Some solution for correcting distance seg-box for spherical anf geo CS 2017-12-21 15:16:02 +02:00
Barend Gehrels
0f4712bdfb [test] add recent testcases to the other test scenarios 2017-12-20 16:54:51 +01:00
Barend Gehrels
f6c67daba6 [difference] fix cases where ii turns were not discarded, this
was a todo-item, it was not yet done for difference.

Including unit testcase using this.
2017-12-20 16:22:27 +01:00
Barend Gehrels
b28b312141 [difference] fix cases where potential inner rings have same area as
outer rings (located elsewhere), due to an earlier optimization
2017-12-20 14:07:51 +01:00
Barend Gehrels
11cff883b0 [intersection] Fix newly found case by removing some conditions from
handle_self_turns and setting ii-self-turns as non-startable instead of
discarding them.
2017-12-16 18:52:39 +01:00
Barend Gehrels
556896c7cc [traverse] need to select on operations in selecting ranks, it is not
done later. Small regression found by recursive_polygons
2017-12-15 14:37:17 +01:00
Barend Gehrels
5d99d1608d [overlay] fix new #case_recursive_boxes_82 by greatly simplifying the code.
patterns/aggregations were added to solve specific intersection problems
and validity in the past. In the meantime self-turns and isolation information
is much better, and those code is not needed anymore.
This also fixes the #mysql_regression_1_65_2017_08_31
This also makes union/intersection code for handling clusters much more similar
2017-12-15 13:20:41 +01:00
Vissarion Fysikopoulos
ea181b43f1 [algorithms] [strategies] [tests] Fix meridian distance point to meridian segment 2017-12-13 19:37:13 +02:00
Adam Wulkiewicz
7fa4d05735 [test][densify] Rename complexify in tests to densify. 2017-12-06 16:15:51 +01:00
Barend Gehrels
18eb8c5cd7 [test] add new testcase to union/difference 2017-12-06 15:39:53 +01:00
Barend Gehrels
080f0f22f4 [traverse] fix case where hole of one of the inputs formed a
disconnected interior (invalid). In the end it is fixed by only
deleting code. This code is not really old but added to fix some
cases, which are finally fixed in a more generic way.

It fixes a new case and also enhances #case_141_multi
2017-12-06 14:25:42 +01:00
Barend Gehrels
b25596dcf1 [test] remove switch_source from debug-svgs 2017-12-06 12:20:00 +01:00
Vissarion Fysikopoulos
a0b78391e0 [strategies] [tests] Multipoint box distance support and tests. 2017-12-05 15:43:54 +02:00
Adam Wulkiewicz
80003b79c1 Merge branch 'develop' into feature/complexify 2017-12-04 22:35:47 +01:00
Adam Wulkiewicz
d3df14abf7 [test][complexify] Add tests of complexify() algorithm. 2017-12-04 22:12:11 +01:00
Vissarion Fysikopoulos
4b9cf1288d [stategies] Clean-up code for pt/box box/box strategies 2017-12-04 17:32:17 +02:00
Vissarion Fysikopoulos
e4a587c0f4 [strategies] [tests] Test degenerate pt/box and box/box cases; fix a bug in pt-sgmt distance strategy 2017-12-01 14:58:16 +02:00
Vissarion Fysikopoulos
0a3204a494 Merge remote-tracking branch 'origin/develop' into feature/distance_box 2017-11-30 16:03:56 +02:00
Barend Gehrels
d1e0296171 [buffer][test] remove ignore_validity for two cases which are now always fine 2017-11-29 17:07:29 +01:00
Barend Gehrels
00a8dac019 [buffer][test] add test cases for fixed behaviour of deflated holes should
have minimal 3 points
2017-11-29 17:06:56 +01:00
Barend Gehrels
c9ea4b50ed [test] Add validity check to robustness test of buffer 2017-11-29 14:39:20 +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
7ab31cd832 [buffer][test] remove default argument - change order 2017-11-24 22:32:33 +01:00
Adam Wulkiewicz
cdf766d175 [test] Fix Boost inspect issues (license, tabs, non-asci character, no-newline). 2017-11-24 01:18:26 +01:00
Barend Gehrels
48c58beb3e Merge branch 'develop' of https://github.com/boostorg/geometry into develop 2017-11-23 23:36:38 +01:00
Barend Gehrels
a4f917628d [test] mark certain cases as invalid. These cases fail on either MinGW
or on PowerPC platforms.
2017-11-23 23:36:16 +01:00
Adam Wulkiewicz
5e807b9028 [test][is_simple] Fix the order of coordinates in WKT in one geographic case. 2017-11-23 20:51:00 +01:00
Barend Gehrels
8bfd285086 [test] exclude one extra case still failing 2017-11-23 17:22:05 +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
Adam Wulkiewicz
0e7614f27d
Merge pull request #433 from vissarion/feature_fix_pt_sgmt_pole
Fix pt-sgmt strategy for special meridian segments passing through poles
2017-11-23 02:37:11 +01:00
Adam Wulkiewicz
88cb906b53 [test][union] Modify geographic union test wrt recent changes (by default invalid polygons are not returned). 2017-11-23 00:09:05 +01:00
Adam Wulkiewicz
d6fd87f37d [test][is_simple] Add geographic cases. 2017-11-22 18:54:49 +01:00
Adam Wulkiewicz
8de0dae9bb
Merge pull request #435 from awulkiew/fix/geographic_antipodal
Fix several algorithms for segments with antipodal endpoints.
2017-11-22 18:43:19 +01:00
Adam Wulkiewicz
1c104d999d [test][andoyer] Alter test wrt recent changes in handling of antipodal points. 2017-11-22 18:42:23 +01:00
Adam Wulkiewicz
e93cd66b51 [test][is_valid] Add geographic cases. 2017-11-21 21:16:16 +01:00
Adam Wulkiewicz
fef1d69d19 [test][difference] Add geo case with antipodal endpoints. 2017-11-20 21:09:41 +01:00
Adam Wulkiewicz
e2489462f6 [test][envelope] Add geo case with antipodal endpoints. 2017-11-20 21:09:09 +01:00
Adam Wulkiewicz
4598fc01de [test][get_turns] Add geo case with antipodal endpoints. 2017-11-20 21:08:46 +01:00
Barend Gehrels
283abc3adc Merge branch 'feature/intvalid' into develop 2017-11-19 16:02:11 +01:00
Barend Gehrels
44f61d05bb Merge branch 'develop' of https://github.com/boostorg/geometry into develop 2017-11-19 16:01:09 +01:00
Barend Gehrels
5b3ac5847b [test][buffer] update countries test where Norway (distance 2) reports invalid 2017-11-19 16:00:17 +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
Adam Wulkiewicz
a2d889ca05 [test][union] Conditionally check union's invalid output exception. 2017-11-15 21:34:37 +01:00
Barend Gehrels
1d1ee684ab [test] examine reported buffer case and fix expectations 2017-11-15 17:19:58 +01:00
Barend Gehrels
9577300b85 [difference] add testcase for ticket 9942, and a simplified version of it 2017-11-15 12:02:08 +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
Adam Wulkiewicz
a4ba4dc276
Merge pull request #434 from awulkiew/fix/geographic_union
Fix for union in geographic CS not generating result if it's too big
2017-11-15 00:25:03 +01:00
Vissarion Fysikopoulos
5b56157fcf [tests] Activate pt-box box-box tests 2017-11-13 14:23:29 +02:00
Vissarion Fysikopoulos
fcc114ee85 [strategies] Meridian distance without creating points 2017-11-13 13:28:40 +02:00
Adam Wulkiewicz
4eaf6a39d6 [test][is_valid] Add case in EPSG4053. 2017-11-12 16:13:06 +01:00
Adam Wulkiewicz
0413013fbc [test][union] Add geographic union tests (big result, negative area). 2017-11-11 02:07:36 +01:00
Adam Wulkiewicz
9eefd8284e [test][intersection] Fix compilation error when failing tests are enabled. 2017-11-10 22:09:19 +01:00
Vissarion Fysikopoulos
236ee9aba5 [strategies] Fix bugs in pt-segmt distance; parametric latitude use and sign of derivative 2017-11-09 17:16:47 +02: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
Vissarion Fysikopoulos
10e88b6bda Merging with develop; use new pt-sgmt distance interface 2017-11-08 13:09:07 +02:00
Vissarion Fysikopoulos
c2ac26eab9 [strategies] [tests] Fix pt-sgmt strategy for special meridian segments passing through poles 2017-11-07 17:35:05 +02:00
Adam Wulkiewicz
0e4f4bc9a1 [test][buffer] Add failing case, self-intersecting result of buffer(Ls). 2017-11-06 17:12:48 +01:00
Vissarion Fysikopoulos
8d29c629d0 [test] Special case handling for Pt-Sgmt distance when segment contains the pole 2017-11-01 21:01:35 +02:00
Vissarion Fysikopoulos
1c5d10fb77 [formulas] Thomas formula return zero for distance between poles. Fixed by calling meridian formula for this case. 2017-11-01 19:44:28 +02:00
Vissarion Fysikopoulos
5a7ccaff35 [tests] Fix expected results in perimeter tests and add few cases 2017-11-01 19:03:52 +02:00
Vissarion Fysikopoulos
f458d8d28e [formulas] [strategies] Distance point-segment use the meridian formula. Use new static version of distance strategy. 2017-11-01 17:42:48 +02:00
Adam Wulkiewicz
639f70a44a [formula][test] Remove/update includes (srs). 2017-10-31 19:38:28 +01:00
Adam Wulkiewicz
2bf59e7a17
Merge branch 'develop' into feature/projections 2017-10-31 16:38:59 +01:00
Adam Wulkiewicz
ede7f02f4f
Merge branch 'develop' into feature/meridian_andoyer 2017-10-31 15:50:42 +01:00
Adam Wulkiewicz
88e8e268e0
Merge pull request #410 from vissarion/feature/distance_point_segment
Geographic distance between a point and a segment
2017-10-31 15:46:19 +01:00
Vissarion Fysikopoulos
e019d4b728 [tests] Use meridian distance formula results in andoyer tests 2017-10-31 16:21:34 +02:00
Adam Wulkiewicz
923606e8aa [test][projections] Use hybrid static projection interface if needed. 2017-10-30 20:10:13 +01:00
Adam Wulkiewicz
cf9504ee18 [test][projections] Pass static o_proj parameter in static ob_tran projection test. 2017-10-30 17:55:43 +01:00
Adam Wulkiewicz
fe3ae4a41d [test][projections] Add esri/iau2000 tests and change names of aeqd projection types. 2017-10-29 03:22:13 +01:00
Adam Wulkiewicz
968035415f Merge pull request #424 from awulkiew/fix/geographic_preceding
Fix preceding/exceeding in geographic CS
2017-10-25 23:28:14 +02:00
Adam Wulkiewicz
6665497ecc Merge pull request #423 from awulkiew/fix/setops_la
Fix L/A set operations
2017-10-25 23:28:02 +02:00
Adam Wulkiewicz
51e67a38bb [test][projections] Update tests WRT recent changes in static_proj4 interface and parameters. 2017-10-25 00:53:10 +02:00
Barend Gehrels
36d1fe7657 Merge branch 'feature/intvalid' into develop 2017-10-23 18:39:46 +02:00
Barend Gehrels
48843415b0 [test] add condition for robustness in some cases 2017-10-23 15:24:39 +02:00
Barend Gehrels
1e0ecf37c7 [test] remove line which was still there unintended 2017-10-23 15:24:10 +02:00
Barend Gehrels
dd6958b903 [test] add last testcase also to intersection/difference 2017-10-23 15:19:13 +02:00
Barend Gehrels
8a1bede41b [test] Add option to recursive_polygons to check area of resulting polygons
(which should normally be >= 0.25)
2017-10-23 15:18:38 +02:00
Barend Gehrels
9024c5f095 [test] Add testcase for incorrectly generated interior ring 2017-10-23 14:57:11 +02:00
Barend Gehrels
433b5fae58 [test] add ticket_12503 to intersection (OK)/difference (failing) 2017-10-23 13:46:39 +02:00
Barend Gehrels
8dee4ab1c8 [is_valid] check reported testcase, it is valid now. Also add it to
union to check the self-intersection-points (which are many)
2017-10-23 13:12:39 +02:00
Barend Gehrels
15b8bcbd79 [test] modify cases for tickets 12751 and 12752 which are (a/b) now
both valid if self-turns are used
2017-10-23 12:19:27 +02:00
Barend Gehrels
704488a731 [test] add last testcase to union/difference too 2017-10-23 12:17:52 +02:00
Barend Gehrels
94ce58de02 [overlay] fix bug in new code, it should check for the operation because
it can happen that union travels to itself and that is irrelevant
2017-10-23 11:26:21 +02:00
Adam Wulkiewicz
f7ae50dc4f [test][projections] Modify combined projections test WRT recent changes - one ob_tran projection. 2017-10-20 19:47:38 +02:00
Adam Wulkiewicz
2e4dc6d305 [test][srs] Test inverse transformation and add case. 2017-10-19 22:01:17 +02:00
Barend Gehrels
38aa0c24a9 [correct] Split off correct_closure from correct
Including unit test
2017-10-19 15:51:43 +02:00
Adam Wulkiewicz
bc7c37235c [test][srs] Replace printing of results with checks. 2017-10-19 04:36:23 +02:00
Adam Wulkiewicz
bf37d44ad9 [test][srs] Modify (project/srs) transformer test WRT recent changes. 2017-10-19 00:01:51 +02:00