Commit Graph

8630 Commits

Author SHA1 Message Date
Adam Wulkiewicz
94353d9f15 [strategies] Remove strategy getters from legacy strategies. 2021-05-24 21:30:32 +02:00
Adam Wulkiewicz
ec3b3b5de2 [strategies] Remove SeriesOrder from umbrella strategies and improve the implementation.
Use custom versions of enable_if for distance() getters.
Use default keyword in default ctors.
Remove unneeded strategy_converter specialization.
2021-05-24 21:30:32 +02:00
Adam Wulkiewicz
c6c8ab8c9c [is_simple][is_valid] Pass umbrella strategy into equals_point_point. 2021-05-24 21:30:32 +02:00
Adam Wulkiewicz
3157ddfe7d [ci] Fix minimal test compilation error with clang-9 at GitHub. 2021-05-24 21:07:23 +02:00
Adam Wulkiewicz
83f18e8d8d [test] Add missing include in approximately_equals test. 2021-05-21 19:06:44 +02:00
Adam Wulkiewicz
b858969108 Merge pull request #840 from awulkiew/feature/strategies_rest
Umbrella strategies for various algorithms.
2021-05-21 16:55:45 +02:00
Barend Gehrels
10142a6703 [turns] have all discarding of start_turns in one place and clean up clusters before assigning 2021-05-19 09:27:44 +02:00
Barend Gehrels
1a3f425583 [geographic] avoid compiler warnings 2021-05-19 09:16:56 +02:00
Barend Gehrels
0b36bbe550 [turns] avoid compiler warning, issue #834 2021-05-19 09:16:56 +02:00
Adam Wulkiewicz
7cbae4d68d Merge pull request #844 from awulkiew/feature/readme_cleanup
Readme cleanup
2021-04-28 15:53:24 +02:00
Barend Gehrels
75d8f9e9b9 [intersection] fix intersection points outside of the segments 2021-04-28 10:31:21 +02:00
Adam Wulkiewicz
d543d78d9f [readme] Remove C++03 deprecation warning. 2021-04-28 01:57:38 +02:00
Adam Wulkiewicz
c655bcfe53 [readme] Use one badge for minimal checks. 2021-04-28 01:33:39 +02:00
Adam Wulkiewicz
7410241a3a [ci] Merge all GH minimal jobs into one file. 2021-04-28 01:26:07 +02:00
Adam Wulkiewicz
02b88e391d [readme] Add codecov badge. 2021-04-27 19:50:28 +02:00
Barend Gehrels
e098a85f5a [test] add testcase for issue #838 2021-04-07 11:13:58 +02:00
Barend Gehrels
eee7fc53ea [clusters] detection is refactored to a simpler sweeping algorithm
This fixes a part (around 30%) of the remaining errors in the recursive buffer check
2021-04-07 11:13:20 +02:00
Adam Wulkiewicz
3ee94d2035 [buffer][simplify] Add missing includes. Remove unused typedefs. 2021-04-02 21:58:53 +02:00
Adam Wulkiewicz
9872e201d2 [line_interpolate] Use strtegy return type to store distances. 2021-04-02 21:00:42 +02:00
Adam Wulkiewicz
8a80effc0d [line_interpolate] Add support for umbrella strategies. 2021-04-02 03:17:57 +02:00
Adam Wulkiewicz
5f262f8d19 [test][distance] Remove unneeded taxicab umbrella strategy. 2021-04-01 20:21:31 +02:00
Adam Wulkiewicz
2828e230f2 [algorithms] Use dummy geometries to get strategies. 2021-04-01 18:22:22 +02:00
Adam Wulkiewicz
a87f924304 Merge branch 'develop' into feature/strategies_rest 2021-04-01 03:14:52 +02:00
Adam Wulkiewicz
29a6a9ff47 Merge pull request #812 from awulkiew/feature/strategies_distance
Umbrella strategies for distance() and comparable_distance().
2021-04-01 00:08:57 +02:00
Adam Wulkiewicz
8077c7f587 Merge pull request #827 from awulkiew/feature/for_each_dimension
Add for_each_dimension and more.
2021-04-01 00:08:20 +02:00
Adam Wulkiewicz
51addc4c4d [util] Rename for_each_dimension.hpp to algorithm.hpp 2021-03-31 23:31:02 +02:00
Adam Wulkiewicz
aece27e1ca [util] Remove unused implementations of for_each_dimension. 2021-03-26 22:33:04 +01:00
Adam Wulkiewicz
2c825826af [doc] Remove convex_hull_graham_andrew section. 2021-03-26 15:55:53 +01:00
Adam Wulkiewicz
1a7716e814 [test][csundef] Divide setops test into two files. 2021-03-26 14:08:22 +01:00
Adam Wulkiewicz
a1c3c9fb80 [test] Fix compilation error caused by abs() call. 2021-03-26 04:25:33 +01:00
Adam Wulkiewicz
1c9e1933b4 [doc][convex_hull] Fix documentation of convex_hull algorithm. 2021-03-26 02:24:43 +01:00
Adam Wulkiewicz
557ac0ea68 [doc] Add 1.76 release notes. 2021-03-26 01:49:35 +01:00
Adam Wulkiewicz
e1967dc6d7 [assign] Fix code formatting, lambda bracket in the next line. 2021-03-25 03:26:08 +01:00
Adam Wulkiewicz
dbc8c29eb3 [strategies][distance] Improve readability of template aliases, add parentheses. 2021-03-25 03:16:26 +01:00
Adam Wulkiewicz
877c515b4a [distance] Simplify strategy and return_type definitions.
For this purpose add the following template aliases in
strategy_utils.hpp:
- detail::distance::strategy_t
- detail::distance::return_t
- detail::distance::cstrategy_t
- detail::distance::creturn_t
2021-03-25 03:04:58 +01:00
Adam Wulkiewicz
d2c79d97a9 [util] Add for_each_dimension and use it in several places. 2021-03-21 02:41:22 +01:00
Adam Wulkiewicz
ef5953d554 [distance][strategies] Implement backward compatibility mechamism for Pt/Pt custom strategies. 2021-03-16 19:23:44 +01:00
Adam Wulkiewicz
b88a204752 [test][distance] Tweak the tests for distance umbrella strategies. 2021-03-16 19:19:41 +01:00
Adam Wulkiewicz
6eb9e238bc [strategies] Remove distance() dependency from weighted_length strategy.
Also add optional CalculationType.
2021-03-11 00:45:08 +01:00
Adam Wulkiewicz
edc2aa5051 [index][strategies] Pass strategy to centroid() in the rtree.
Implement spherical and geographic strategies in order to maintain
backward compatibility. Even though dummy legacy strategy is returned.

Add centroid tests for undefined CS.
2021-03-10 17:03:03 +01:00
Adam Wulkiewicz
bb758ac749 [centroid] Ignore Points tparams in centroid strategies. Pass them from the algorithm. 2021-03-10 01:48:52 +01:00
Adam Wulkiewicz
ecda1a9e49 [centroid] Support umbrella strategies. 2021-03-10 00:52:43 +01:00
Ayush Gupta
8b6929193d Fix #define directive convention in area_result.hpp and default_area_result.hpp (#826)
* Fix #define directive convention in area_result.hpp and
default_area_result.hpp

* Update #endif comment
2021-03-05 14:23:31 +01:00
Vissarion Fisikopoulos
6918276567 Merge pull request #824 from awulkiew/fix/area_test
[test][area] Tweak error thresholds for small areas.
2021-03-03 21:20:38 +02:00
Adam Wulkiewicz
6bb65c1e74 [test][area] Tweak error thresholds for small areas. 2021-03-03 17:26:23 +01:00
Adam Wulkiewicz
3a2b488007 [svg][test] Fix msvc compilation error, alter test after recent change. 2021-03-03 16:19:03 +01:00
Adam Wulkiewicz
6c6dc683e3 Merge pull request #822 from ayushgupta138/fix-area-strategy-doc
Fix Documentation error in Area strategy
2021-03-03 14:13:28 +01:00
Adam Wulkiewicz
28559c042e Merge pull request #670 from sudo-panda/feature/symmetric-wkt
Symmetrizing read/write wkt
2021-03-03 14:06:08 +01:00
Barend Gehrels
fc154b8d89 [svg] changes newly added scale function in a constructor parameter, and allows to write
to svg immediately after constructor
2021-03-03 10:54:34 +01:00
Adam Wulkiewicz
4029410e1c [strategies][simplify] Handle comparable strategies in strategy_converter. 2021-03-03 03:40:10 +01:00