Commit Graph

8536 Commits

Author SHA1 Message Date
Yaghyavardhan singh khangarot
263a75ff9e [test][similarity] Added test for edge cases 2018-07-07 17:39:50 +05:30
Vissarion Fysikopoulos
65084bb854 [util] Use exact coordinate check for inverse box 2018-07-06 16:43:43 +03:00
Adeel Ahmad
1a52eaca9c
[formulas] Resolve inaccuracy in starting point for Newton's method 2018-07-06 18:27:49 +05:00
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
Phillip Palk
5a0964886a [iterators] fix calculation of range's const reference type inside closing_iterator and ever_circling_iterator. 2018-07-05 23:07:36 +10:00
Yaghyavardhan singh khangarot
a34d4a0eb7 [algorithms] Updated hausdorff distance algorithm 2018-07-04 20:28:20 +05:30
Adam Wulkiewicz
b1c9ec70d7 Merge branch 'bg-prepare' 2018-07-04 16:55:47 +02:00
Adam Wulkiewicz
7a5e208b37 Merge branch 'develop' into bg-prepare 2018-07-04 16:54:48 +02:00
Adam Wulkiewicz
9ac132ea0f [test][distance] Remove unused variable. 2018-07-04 16:54:20 +02:00
Adam Wulkiewicz
81ab3a1e7c [distance] Fix std::min() call with msvc. 2018-07-04 16:54:02 +02:00
Adam Wulkiewicz
420e165376
Merge pull request #487 from vissarion/feature_test_distance_any_geo
Distance between any two geometries for spherical and geographic cs
2018-07-04 15:21:01 +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
Adam Wulkiewicz
f711e7b8e7
Merge pull request #478 from vissarion/feature_box_seg
Box-segment distance for spherical and geographic coordinate systems
2018-07-04 15:03:56 +02: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
Adam Wulkiewicz
de95e2c2d1 Merge branch 'develop' into feature/projections_interface 2018-07-02 22:26:32 +02:00
Adam Wulkiewicz
d09576c4b3 Merge branch 'bg-prepare' 2018-07-02 22:24:48 +02:00
Adam Wulkiewicz
3efcfabcc1 Merge branch 'develop' into bg-prepare 2018-07-02 22:24:13 +02:00
Adam Wulkiewicz
1d2b1bdd1e [ci] Ignore apt update failure in CircleCI script. 2018-07-02 22:15:38 +02:00
Adeel Ahmad
12bd41fd5d
[formulas] Store values from Karney's inverse method in result_inverse structure
The computed values from inverse method include distance, azimuth,
reverse_azimuth, reduced_length, and geodesic_scale.
2018-07-02 13:47:58 +05:00
Adam Wulkiewicz
b7f7faa069 Merge branch 'bg-prepare' 2018-07-02 04:56:41 +02:00
Adam Wulkiewicz
be7ae5b27a Merge branch 'develop' into bg-prepare 2018-07-02 04:55:26 +02:00
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
Adeel Ahmad
621950329a
[util] Pass range into math::polyval() instead of std::vector
This is done to avoid creating a separate container in each
iteration.
2018-06-28 10:57:21 +05:00
Adeel Ahmad
1fe3b3bd75
[util] Pass SeriesOrder as template parameter in evaluate_coeffs_C3x() function
The coefficient container structs are moved to the
bottom of the file.
2018-06-28 10:56:11 +05:00
Adeel Ahmad
b86a93bc5a
[util] Rename math::normalize_values to math::normalize_unit_vector 2018-06-28 09:51:25 +05:00
Adam Wulkiewicz
048b1f7928
Merge pull request #495 from kuhlenough/develop
Minor fixes for compilation with VxWorks 7
2018-06-28 04:40:29 +02:00
Adam Wulkiewicz
7a832916ba [srs] Fix compilation errors in projections/grids.hpp
Wrong ifstream.open() argument and shadowing of template argument.
2018-06-28 04:06:37 +02:00
Adam Wulkiewicz
b945bbba97 [test][srs] Update projections/transformations tests after implementation of new parameters. 2018-06-28 04:02:49 +02:00
Adam Wulkiewicz
1f0d25300f [srs] Add default ctor to projection_unknown_id_exception. 2018-06-28 04:01:14 +02:00
Adam Wulkiewicz
d3cc2e6201 [srs] Use newly implemented parameters to define predefined SRID parameters.
Run-time and compile-time EPSG, ESRI and IAU2000 codes.
2018-06-28 03:58:12 +02:00
Adam Wulkiewicz
6f963b2117 [srs] Support new parameters in srs::projection and srs::transformation classes. 2018-06-28 03:55:13 +02:00
Adam Wulkiewicz
d6700a8865 [srs] Support new parameters in projections. 2018-06-28 03:52:56 +02:00
Adam Wulkiewicz
a5ad85cfae [srs] Support new interfaces in run-time factory and projection base classes. 2018-06-28 03:51:32 +02:00
Adam Wulkiewicz
345ad92e5b [srs] Implement new static and dynamic transformation parameters.
There are 3 ways of defining parameters:

// run-time Proj4 string
srs::proj4("+proj=tmerc +ellps=WGS84 +units=m")

// run-time
using namespace srs::dpar;
parameters<>(proj_tmerc)(ellps_wgs84)(units_m)

// compile-time
using namespace srs::spar;
parameters<proj_tmerc, ellps_wgs84, units_m>
2018-06-28 03:44:15 +02:00
Adeel Ahmad
9ff4fbe94a
[util] Use functions from math namespace instead of std 2018-06-27 10:46:27 +05:00
Adeel Ahmad
9699b49098
[util][formulas] Rename normalize_angle function to normalize_azimuth
For normalizing longitudes, the normalize_longitude function is
used instead.
2018-06-27 10:34:18 +05:00
Adeel Ahmad
c26483b9fc
[util] Change static inline to inline in series_expansion.hpp file 2018-06-26 17:11:35 +05:00