Barend Gehrels
c24c971e73
[fix] get_turns with const geometries, as long as its turn_point is writable
2022-03-09 12:15:22 +01:00
Barend Gehrels
9edf4d1685
[fix] sectionalize with const geometry
2022-03-02 09:34:40 +01:00
Barend Gehrels
48516c8d32
[coordinate_types] support for Boost.Rational and Boost.Multiprecision
...
including a unit test
2021-09-29 12:44:49 +02:00
Adam Wulkiewicz
4b72c60ecf
Merge branch 'develop' into feature/gc3
2021-08-23 00:59:27 +02:00
Adam Wulkiewicz
08f7e66f79
[test] Drop library dependencies in tests.
...
If possible drop type_traits, mpl, typeof, foreach, assign.
Rearrange some includes.
2021-07-22 19:46:51 +02:00
Adam Wulkiewicz
d3be761ac5
Add support for output GeometryCollection in convex_hull.
...
Add relate(pt, pt) to convex_hull umbrella strategy.
Add several util::enable_if_xxx type traits.
Remove detail::as_range().
Update the tests.
2021-06-30 23:41:27 +02:00
Adam Wulkiewicz
32aaa05bd0
Remove range_type<> and modify detail::as_range(), plus other minor tweaks.
...
The rationale behind it is that in all cases range_type<> was used as
ring_type<>. There was a specialization for Box defining box_view<> but
this was semantically different than accessing a ring of geometry.
detail::as_range() was taking a range type and returning a reference to
this range which was inconsistent with ring_return_type<>.
Remove unneeded begin() and end() functions in non-mutable ranges
closeable_view<> and detail::normalized_view<>.
Add specialization of ring_type<> for linestrings since there is already
specialization of ring_return_type<>.
Fix some compilation errors.
2021-06-06 00:00:52 +02:00
Adam Wulkiewicz
9849f23b5c
Add DynamicGeometry adaptation for std::any.
2021-05-29 23:09:12 +02:00
Adam Wulkiewicz
6e71295d64
Add DynamicGeometry adaptation for std::variant.
2021-05-28 18:36:39 +02:00
Adam Wulkiewicz
251f7d15e0
Move algorithms/visit.hpp to algorithms/detail/visit.hpp
2021-05-28 17:30:26 +02:00
Adam Wulkiewicz
c7ae87d15c
Merge branch 'develop' into feature/gc
2021-05-28 17:09:11 +02:00
Adam Wulkiewicz
667471e5ed
Improve visit traits and algorithms.
...
Add support for rvalue references in visit traits and algorithms.
Move visit algorithms to detail namespace.
Rename visit_iterator trait to iter_visit.
Add tests for visit traits and algorithms.
Remove unneeded comments.
2021-05-28 01:48:26 +02:00
Adam Wulkiewicz
83f18e8d8d
[test] Add missing include in approximately_equals test.
2021-05-21 19:06:44 +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
6b74f7c8a3
Support umbrella strategies in relops, setops, index, buffer and more.
...
Also is_simple, is_valid and extensions like dissolve and nsphere relops.
Add umbrella strategies:
- relate: used in setops, relops, buffer, is_xxx, dissolve, etc.
- index: used in rtree
- io: used in wkt read/write and extensions/shapefile
Replace `point_box_by_side` agnostic strategy with CS-specific strategies.
Fix passing of strategies (no defaults when user-defined strategy is
passed) in places like buffer and distance.
Alter tests accordingly.
2020-10-21 17:42:02 +02:00
Adam Wulkiewicz
8763d3cae3
[algorithms] Replace mpl::vector_c with std::integer_sequence in sectionalize.
2020-09-11 13:50:04 +02:00
Adam Wulkiewicz
c63e7a8394
Move is_range util to range.hpp to avoid Boost.Range/MPL dependency in type_traits.hpp
2020-09-03 16:24:29 +02:00
Adam Wulkiewicz
52cceae021
[strategies] Relocate area, envelope and expand strategies.
2020-08-05 22:59:13 +02:00
Adam Wulkiewicz
a5b46d0f8b
[algorithms][strategies] Add umbrella strategies for area, envelope and expand.
2020-07-10 12:58:23 +02:00
Adam Wulkiewicz
2b74e42436
Merge branch 'develop' into feature/setops_output
2020-03-24 14:38:46 +01:00
Mateusz Łoskot
96db897fc5
Rename Jamfile.v2 to Jamfile ( #679 )
...
There is no reason to maintain the legacy .v2 file extension,
which is unnecessary clutter, may be confusing.
2020-03-08 23:50:18 +01:00
Barend Gehrels
35c5d67d4d
[buffer] Cleanup, remove unused functionality, calculate originals
...
and monotonic sections in another way
2019-12-18 10:13:18 +01:00
Adam Wulkiewicz
d7e440c015
[test][algorithms] Add tests for tupled_output helper utils.
2019-11-27 23:33:27 +01:00
Adam Wulkiewicz
be7b5e71ec
[test] Replace tab with spaces.
2019-04-12 15:42:18 +02:00
Adam Wulkiewicz
8f2f5932a1
[test][point_order] Add tests for calculate_point_order() algorithm.
2019-03-01 21:28:04 +01:00
Adam Wulkiewicz
bcd6e69b41
[test][partition] Use disjoint Box/Box strategy in partition test.
2018-10-13 12:46:33 +02:00
Mateusz Łoskot
f2d5fae490
Replace boost::ignore_unused_variable_warning with boost::ignore_unused
...
The former is provided by Boost.ConceptCheck.
The latter is an improved equivalent provided by Boost.Core.
Related to #513
2018-10-12 15:16:46 +02:00
Adam Wulkiewicz
dd439ce1c1
[test][partition] Return bool from visitors, it is now required by partition().
2017-03-09 05:44:41 +01:00
Adam Wulkiewicz
bc77e1255e
[test] Adapt tests to new interfaces of various utilities in the library.
...
default_strategy services, partition, get_turns, strategies.
2017-01-28 04:09:49 +01:00
Adam Wulkiewicz
c72eaf7ffb
[test][algorithms] Name/rename the tests.
2015-06-06 00:40:34 +02:00
Menelaos Karavelas
29c460b546
[test][algorithms] remove deprecated includes referring to the
...
include/boost/geometry/multi/ directory; polish and simplify some includes;
2015-03-12 02:10:14 +02:00
Barend Gehrels
65f57b1947
[test] move as_range to algorithms/detail
2015-03-11 19:07:16 +01:00
Barend Gehrels
a18c0c2ad1
[sectionalize] let sectionalize_part make use of iterators instead of range,
...
for next commit where that is used for buffer, and range is inconvenient
2015-02-25 17:33:16 +01:00
Adam Wulkiewicz
aff82800c4
[test][algorithms] Use BOOST_GEOMETRY_CONDITION macro for constant conditions.
2015-02-11 15:53:50 +01:00
Adam Wulkiewicz
584e585f28
[test][sections] Fix error and warning.
...
Error: wrong number of parameters passed into sectionalize()
Warning: comparison of signed and unsigned integer.
2014-12-26 19:17:17 +01:00
Barend Gehrels
0478b5e082
[sectionalize] pass dimension vector as template argument
...
Test for vertical now also tests y-dimension
2014-12-21 15:48:22 +01:00
Barend Gehrels
3a17e5838b
[sectionalize] extra tests for horizontal/vertical monotonic sections
2014-12-21 13:14:59 +01:00
Barend Gehrels
c3823e8dc1
[sectionalize][test] remove debug-output
2014-12-21 13:14:35 +01:00
Barend Gehrels
91150690be
[sectionalize] pass max_count as argument
2014-12-21 13:14:12 +01:00
Barend Gehrels
110e178f77
[sectionalize] remove specific unit-test free function
2014-12-21 11:53:16 +01:00
Barend Gehrels
40a6525bb2
[sectionalize] remove effectively unused parameter enlarge_section_boxes:
...
It was used inconsistently in two places. If necessary, library code
can call enlarge_sections explicitly afterwards.
It was erroneous (if not enlarge then enlarge).
In case of robust policies it was redundant.
2014-12-20 15:53:51 +01:00
Barend Gehrels
43ba70c8e1
[partition][buffer] add extra policy for inclusion. This gives opportunity
...
to filter items early, they are skipped for all partitions. This avoids
the need making an extra copy to select only turns with location_ok status, for buffer.
It can increase performance with 20%
2014-12-20 14:47:57 +01:00
Adam Wulkiewicz
0526a104eb
[test][algorithms] Fix unused parameter warnings.
2014-10-20 18:17:41 +02:00
Barend Gehrels
9a72b838a6
[test] added note about out-of-date. It is not part of any Jamfile currently
2014-10-15 12:00:01 +02:00
Barend Gehrels
d06c25bc5f
[buffer] Remove helper functions now not used/need anymore
2014-06-12 18:50:47 +02:00
Barend Gehrels
0287c1d3bb
[partition] support heterogenous collections
2014-06-11 14:17:09 +02:00
Barend Gehrels
b0786ddff1
[partition] fix non-svg unit test
2014-06-11 13:41:02 +02:00
Barend Gehrels
a707a887f2
[partition] add unit test for partition of two collections
2014-06-11 13:29:40 +02:00
Barend Gehrels
269afda349
[partition] fix unit test
...
check was only done if SVG was enabled
2014-06-11 13:28:42 +02:00
Barend Gehrels
5a85076f4b
[get_left_turns] reimplement using integer arithmetic
...
including unit test
2014-06-08 19:03:11 +02:00