Vissarion Fysikopoulos
a2e355a683
[algorithm] Simplify termination condition for single points in line_interpolate
2019-02-12 12:37:46 +02:00
Vissarion Fysikopoulos
a6da161fa8
[algorithm] Clean code for line_intrpolate
2019-02-11 17:04:55 +02:00
Vissarion Fysikopoulos
127de58eaf
[test] Test edge cases for line_intrpolate
2019-02-11 17:03:15 +02:00
Vissarion Fysikopoulos
033c9c7aaf
[test] Test for input distance longer than linestring length for line_intrpolate
2019-02-11 16:37:08 +02:00
Vissarion Fysikopoulos
6d837b55ef
[test] Test for negative input distance for line_intrpolate
2019-02-11 16:05:50 +02:00
Vissarion Fysikopoulos
c5354453ac
[test] Test for line_intrpolate regarding round off errors
2019-02-11 15:58:17 +02:00
Vissarion Fysikopoulos
b02c5e2aae
[algorithm] [strategy] Change line_interpolate_point to use distance instead of fraction
2019-01-25 16:49:03 +02:00
Vissarion Fysikopoulos
e20977bd22
[algorithms] Rename PointType to Pointlike for point or multi-point type
2019-01-24 11:24:13 +02:00
Vissarion Fysikopoulos
9cf73a23df
[algorithms] Add missing const to function parameter
2019-01-24 11:22:00 +02:00
Vissarion Fysikopoulos
d553d82d56
Resolve conflicts and merge with develop
2018-12-17 14:02:20 +02:00
Adam Wulkiewicz
92fb762a2c
[strategy] Fix compilation errors in spherical strategies (missing includes and template keywords).
2018-12-17 03:53:55 +01:00
Adam Wulkiewicz
cd863853c2
[envelope] Add missing #include.
2018-12-17 01:45:32 +01:00
Adam Wulkiewicz
9d5d5ae6e8
[strategies] Fix warning, add missing comment at end of #endif.
2018-12-17 01:38:48 +01:00
Adam Wulkiewicz
c7ba195a9e
Merge pull request #533 from awulkiew/feature/undefined_cs
...
Define CS-specific behavior of algorithms only with strategy (part 1).
2018-12-16 22:24:33 +01:00
Adam Wulkiewicz
f6826c43b2
[test][strategies] Rename envelope_segment test file.
2018-12-16 15:41:39 +01:00
Adam Wulkiewicz
371767b248
[get_turns] Remove unneeded comment.
2018-12-16 15:18:34 +01:00
Adam Wulkiewicz
4c099bdd50
Merge branch 'develop' into feature/undefined_cs
2018-12-16 15:16:39 +01:00
Adam Wulkiewicz
b8951f2d1d
Merge pull request #540 from awulkiew/feature/get_turn_info
...
Make side calculation for linear endpoints clearer.
2018-12-15 19:09:19 +01:00
Adam Wulkiewicz
ee4ebca3c6
[get_turns] Make side calculation for linear endpoints clearer. Don't calculate unnecessary sides.
2018-12-15 19:07:56 +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
Adam Wulkiewicz
b11ab4c713
Merge pull request #538 from awulkiew/fix/array_init
...
Add workaround for msvc-12 faulty array initialization.
2018-12-11 14:18:24 +01:00
Adam Wulkiewicz
329e63b3e5
Merge pull request #535 from eldiener/develop
...
Removed executable permission from file(s).
2018-12-10 23:08:08 +01:00
Adam Wulkiewicz
e710403b4d
[core][srs] Add workaround for msvc-12 faulty array initialization.
2018-12-10 22:47:11 +01:00
Barend Gehrels
bac949d20f
[get_turn_info] add ranges
2018-12-08 21:39:51 +01:00
Barend Gehrels
2dce9c3c8a
[get_turn_info] verify more pk/qk to avoid assertions
2018-12-08 19:31:38 +01:00
Barend Gehrels
b5d44b7428
[test] fix get_turn_info test
2018-12-08 18:55:47 +01:00
Barend Gehrels
bec490d6a1
[get_turn_info] review remark, i/o size use is_last_segment
2018-12-08 18:15:21 +01:00
Barend Gehrels
2c14e92289
[test] put ranges first
2018-12-08 17:59:02 +01:00
Barend Gehrels
ca22e2445c
[get_turn_info] rename wrongly named variables to more proper symbolic names
2018-12-08 17:45:29 +01:00
Barend Gehrels
a02a4646ce
[get_turn_info] revise operations_of_equal, pass sides instead of ranges
...
because one of the calls had wrong order and yet another version was used.
Besides that it is simpler.
2018-12-08 17:33:56 +01:00
Barend Gehrels
9a6a578bee
[get_turn_info] get rid of confusing names
2018-12-08 15:15:46 +01:00
Barend Gehrels
8626ae1655
[get_turn_info] avoid assertion by refactoring away side_calculator_for_endpoint,
...
such that pk/qk are now retrieved lazily. This also solves part of the
mystery of the points passed in wrong order.
2018-12-08 15:10:51 +01:00
Barend Gehrels
668e9b1707
[get_turn_info] Add conditions to avoid assert in collinear turn handler
...
and is_spike
2018-12-08 14:54:53 +01:00
Barend Gehrels
7ce6dfc7e6
[get_turn_info] review remarks, add assert
...
(still asserting sometimes)
2018-12-08 13:40:13 +01:00
Barend Gehrels
35bdde4dd9
[get_turn_info] review remarks, pass ranges first, use iterators, comments
2018-12-08 13:36:55 +01:00
Barend Gehrels
daf901aaf2
[get_turn_info] minor, comments, style
2018-12-05 11:25:17 +01:00
Barend Gehrels
fdac1fb86d
[get_turn_info] now pi/qi are neither necessary, being used only once
2018-12-05 11:24:50 +01:00
Barend Gehrels
b6a537fcb4
[get_turn_info] now that buffer does not use assign_policy::apply anymore,
...
it can be omitted.
2018-12-05 10:44:32 +01:00
Barend Gehrels
3644f81f6a
[get_turn_info] avoid typedef, omit pj/qj used once
2018-12-05 10:10:40 +01:00
Barend Gehrels
413e590994
[get_turn_info] rename typedef'ed PointQ to point1_type and similar
2018-12-05 10:09:56 +01:00
Barend Gehrels
e0a44b8fb5
[get_turn_info] rename has_k back to is_last
2018-12-05 10:09:21 +01:00
Barend Gehrels
e5b1711afc
[get_turns] fix new code, use correct type
2018-12-05 10:09:04 +01:00
Barend Gehrels
64126a9173
[get_turn_info][test] add point_type, rename policy
2018-12-04 23:12:20 +01:00
Barend Gehrels
83a1e07506
[buffer] do not calculate robust points in assign, but before.
...
This is slightly less performant (because it is now also calculated
for non-intersecting segments) but probably not significant,
and, more importantly, rescaling will be gone later
2018-12-04 22:31:59 +01:00
Barend Gehrels
11b33d6966
[buffer] propagate change retrieve -> sub_range to buffer
2018-12-04 22:22:00 +01:00
Barend Gehrels
5cc0ac19aa
[get_turn_info] move is_p_last info is_spike_p which avoids many extra
...
checks and passing parameters. For remaining bools use the appropate
conditions directly
2018-12-04 20:28:43 +01:00
Barend Gehrels
2653bf5e7b
[get_turn_info] Adapt unit test to latest state
2018-12-04 19:42:46 +01:00
Barend Gehrels
9a31ac712f
[get_turn_info] Replace get_point_i/j/k by at, and has_p by size()
...
to make a range-like concept
Also in review there were remark about i/j/k/l
2018-12-04 19:38:08 +01:00
Barend Gehrels
b38de4468e
[get_turn_info] rename RetrieveAdditionalInfoPolicy to UniqueSubRange
2018-12-03 22:40:16 +01:00
Barend Gehrels
6bd612f3e6
[get_turn_info] remove pi,pj / qi,qj from other basic turn handlers
...
In many places it was not used
2018-12-03 20:02:39 +01:00