Adeel Ahmad
78411f63c8
[doc][util][formulas][test] Add copyright information in updated files
2018-06-18 18:05:11 +05: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
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
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
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
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