Menelaos Karavelas
277dcdba59
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/distance-for-merge
2014-05-14 15:29:12 +03:00
Menelaos Karavelas
f6d0b4054a
[distance] fix unused variable warnings produced by clang++ with -Wextra and warnings by VS (reported by Adam)
2014-05-14 15:20:57 +03:00
Barend Gehrels
71be9ab855
[test] added include for multi
2014-05-14 14:19:04 +02:00
Barend Gehrels
a703cae46e
[num_points][test] Added test for num_points which was not yet there
2014-05-14 14:18:48 +02:00
Barend Gehrels
afb301f6ed
[unit test] Made from_wkt inline and avoid abbreviations
2014-05-14 13:47:22 +02:00
Barend Gehrels
09365f0086
[unit test] Added copyright info
2014-05-14 13:46:52 +02:00
Barend Gehrels
07696d76fd
[overlay] Added missing include / removed obsolete include,
...
causing unit test troubles after distance merge
2014-05-14 13:46:22 +02:00
Barend Gehrels
c995031337
[intersection] avoid circulare reference in index/intersection/distance
2014-05-14 13:22:48 +02:00
Barend Gehrels
06346ee2ea
Merge pull request #24 from mkaravel/feature/distance-for-merge
...
Feature/distance for merge
2014-05-14 12:35:59 +02:00
Menelaos Karavelas
ef5d49a3fa
[test][distance] replace operator() by static apply method in tester of distance of two geometries; activate test for the segment-ring combination
2014-05-13 11:57:09 +03:00
Menelaos Karavelas
cfb445773e
[test][distance] make clear the distinction between distance result and comparable distance result (use correct types and checks)
2014-05-13 11:01:45 +03:00
Menelaos Karavelas
cfef0b8d68
[test] extract string_from_type class in geometry_test_common.hpp in a separate file
2014-05-13 10:55:36 +03:00
Menelaos Karavelas
9d9f1241be
[test][distance] add test case for distance between boxes with integer coordinates
2014-05-13 10:54:35 +03:00
Menelaos Karavelas
b8eaf21fb5
[comparable distance] make comparable_distance(g1, g2) return default_comparable_distance_result
2014-05-13 10:53:25 +03:00
Barend Gehrels
5132d2a9cf
[doc] Added variant to implementation-status matrix
2014-05-12 22:31:09 +02:00
Barend Gehrels
1e493ce5fc
Merge pull request #25 from mkaravel/develop
...
[overlay] quick fix for boost trac ticket #10019
2014-05-11 23:13:04 +02:00
Menelaos Karavelas
cea8dd1b0d
[distance] polish code; make clear when the result of comparable or regular strategy is used;
2014-05-11 23:21:22 +03:00
Menelaos Karavelas
15c711cf53
[distance] polish code; make clear when the result of comparable or regular strategy is used;
...
re-write geometry_to_geometry_rtree class so that is uses comparable distances for internal computations;
2014-05-11 23:16:17 +03:00
Menelaos Karavelas
f565154090
[test][strategies] add unit test to test the return type of the default distance result and the default comparable distance result
2014-05-10 15:14:19 +03:00
Menelaos Karavelas
aba739439b
[test][distance L/A] add test case for segment-box distance, where the segment degenerates to a point
2014-05-09 23:07:00 +03:00
Menelaos Karavelas
d6b3abcfc1
[distance] re-write segment-box distance code without strategy::distance::services::strategy_point_point;
...
fix bug in segment-box comparable distance when the segment degenerates to a point;
2014-05-09 23:05:20 +03:00
Menelaos Karavelas
54ff519466
[stategies][distance] remove strategy::distance::services::strategy_point_point from distance strategies and distance strategy concept
2014-05-09 23:02:39 +03:00
Menelaos Karavelas
5c5d42341c
[test][distance] move unit test code from test/multi/algorithms/multi_distance.cpp to test/algorithms/distance.cpp;
...
delete test/multi/algorithms/multi_distance.cpp;
2014-05-09 22:25:45 +03:00
Menelaos Karavelas
5777fd5b8d
[overlay] the specialization of intersection_insert for linestring/box computes the intersection, but pretends as if it works for difference as well;
...
quick fix: further specialize this specialization of intersection insert so that it works only for overlay_intersection;
problem and quick fix related to boost trac ticket #10019 ;
2014-05-09 09:33:32 +03:00
Menelaos Karavelas
a7d02e0391
[distance][test] enable segment-segment distance computations
2014-05-09 00:20:24 +03:00
Menelaos Karavelas
226dcc4e6c
[comparable distance] fix comments so that they make sense wrt to the code they refer to
2014-05-09 00:02:17 +03:00
Menelaos Karavelas
47c1cfe9b6
[strategies][distance] re-implement the dfeault distance result using the default strategy from detail::distance::default_strategy
2014-05-08 23:59:11 +03:00
Menelaos Karavelas
73858fc359
[comparable distance] simplify the definition of the default comparable strategy using the class detail::distance::default_strategy
2014-05-08 23:56:55 +03:00
Menelaos Karavelas
4598228ea0
[distance] re-implement the default strategy type in free function distance(g1, g2); remove inclusion of unused headers;
2014-05-08 23:50:28 +03:00
Menelaos Karavelas
cd77588326
[strategies] implement default_comparable_distance_result class
2014-05-08 23:48:38 +03:00
Menelaos Karavelas
e729f37bbe
[distance] perform reverse-dispatch for default strategy
2014-05-08 23:47:22 +03:00
Barend Gehrels
0a69813111
Merge branch 'develop' of github.com:boostorg/geometry into develop
2014-05-08 22:07:03 +02:00
Barend Gehrels
f4a687d79a
[doc] Fixed double inclusion of Menelaos
2014-05-08 22:06:21 +02:00
Menelaos Karavelas
3d25114c8e
[distance] remove inclusion of default_distance_result (not used)
2014-05-08 22:33:56 +03:00
Menelaos Karavelas
aecc7c8015
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/distance-for-merge
2014-05-08 17:29:00 +03:00
Menelaos Karavelas
1a2ef5c2bc
[disjoint] add specializations for linestring/multilinestring, multilinestring/multilinestring; fixed specialization for polygon/multilinestring
2014-05-08 16:39:09 +03:00
Menelaos Karavelas
23f8b97fac
[index] include comparable_distance algorithm
2014-05-08 15:59:15 +03:00
Menelaos Karavelas
8a7a14bc53
[index] replace call to comparable_distance_near by bg::comparable_distance
2014-05-08 15:52:53 +03:00
Menelaos Karavelas
203aa991ae
[index] replace #include <boost/geomerty/geometry.hpp> by the necessary includes
2014-05-08 15:46:25 +03:00
Adam Wulkiewicz
9ea4b6bf6c
[index] Add the support for std::pair<> and boost/std::tuple<> registered as Indexable
2014-05-08 14:42:45 +02:00
Menelaos Karavelas
d289118bd9
[strategies] add the point-box and box-box pythagoras strategies in strategies/strategies.hpp
2014-05-08 15:26:57 +03:00
Menelaos Karavelas
752de3060a
[iterators] add free function has_one_element, that tests whether an iterator range has a unique element (has size 1)
2014-05-08 15:15:16 +03:00
Menelaos Karavelas
b1eaf94bfe
[strategies][distance] add a template parameter to default distance strategy corresponding to the second geometry of the distance strategy
2014-05-08 15:12:59 +03:00
Menelaos Karavelas
3c64533d7d
[distance] add primary dispatch definition under algorithms/dispatch
2014-05-08 15:11:54 +03:00
Menelaos Karavelas
55f63b77df
[distance] update distance.hpp: primary dispatch is under algorithms/dispatch/, details are under algorithms/detail/distance/
2014-05-08 15:10:24 +03:00
Menelaos Karavelas
0600a3419f
[strategies][distance] add tags for point-box and box-box strategies
2014-05-08 15:08:09 +03:00
Menelaos Karavelas
cfc4e7a3c9
[multi][distance] move multi/algorithms distance code under algorithms/ keep the file as a placeholder and include algorithms/distance.hpp
2014-05-08 15:06:19 +03:00
Menelaos Karavelas
ddc5ddf0ff
[comparable distance] add free function for comparable distance that takes a strategy
2014-05-08 15:04:23 +03:00
Menelaos Karavelas
8a23c01061
[test][distance] add common code for distance unit tests
2014-05-08 15:02:49 +03:00
Menelaos Karavelas
e783d7ca2e
[distance] dispatches for various geometry combinations with the point-point strategy;
...
the point-point strategy is not the natural distance strategy for these geometry pairs;
the dispatches have been added for backward compatibility;
2014-05-08 15:01:03 +03:00