Commit Graph

8976 Commits

Author SHA1 Message Date
Adam Wulkiewicz
fc6ddc9dee [relate][test][equals] Fix relate for GC special case 2022-06-08 19:51:12 +02:00
Adam Wulkiewicz
c4a8ce3ba6 [test][equals][relate] Add tests for GC, some not passing because of a bug in relate 2022-06-08 16:28:49 +02:00
Adam Wulkiewicz
92f7fd1049 [equals] Add support for GC 2022-06-08 16:28:08 +02:00
Adam Wulkiewicz
ea376ad819 [algorithms][test] Fix remove_duplicate_turns used in L/L setops.
Pass strategy to P/P equality check.

Drop algorithms/equals.hpp dependency from set operations.
2022-06-08 14:53:43 +02:00
Adam Wulkiewicz
7e100471e7 [algorithms] Move gc helper algorithms to separate files.
Rename files and algorithms to match the naming pattern.
2022-06-08 02:05:27 +02:00
Adam Wulkiewicz
040636c6c3 [test][overlaps] Add tests for GC and DG 2022-06-08 00:55:11 +02:00
Adam Wulkiewicz
17b939e07f [policies] Include compare spherical strategy in compare policy header 2022-06-08 00:54:41 +02:00
Adam Wulkiewicz
5ff809ca5f [overlaps] Add support for GC and DG 2022-06-08 00:53:55 +02:00
Adam Wulkiewicz
bd2d11cc62 [test][crosses] Add tests for GC. 2022-06-07 23:24:21 +02:00
Adam Wulkiewicz
e30bf569ad [crosses] Add support for GC. 2022-06-07 23:22:35 +02:00
Adam Wulkiewicz
b85ba192cd [test][relate] Add tests for GC. 2022-06-07 15:35:02 +02:00
Adam Wulkiewicz
e9e64da71b [algorithms] Add support for GC in relate.
Alter includes in several algorithms to allow using union in relate.

Conditionally allow grouping of elements from the same GC in
union's gc_group_elements.
2022-06-07 15:32:12 +02:00
Adam Wulkiewicz
fcfaaff17b [test][algorithms] Alter the expected results of union and sym_difference. 2022-06-02 15:41:12 +02:00
Adam Wulkiewicz
d57a913d4e [union] Comment out the code subtracting the GC elements of the result. 2022-06-02 15:41:12 +02:00
Adam Wulkiewicz
c132af9587 [test][algorithms] Add tests for GC in intersection, sym_difference and union. 2022-06-02 15:41:12 +02:00
Adam Wulkiewicz
4fb91e4e31 [algorithms] Add support for GC in sym_difference. 2022-06-02 15:41:12 +02:00
Adam Wulkiewicz
0ad05bfef4 [algorithms] Add support for GC in union. 2022-06-02 15:41:12 +02:00
Adam Wulkiewicz
e7836a3ce2 [algorithms] Add support for GC in intersection. 2022-06-02 15:41:12 +02:00
Adam Wulkiewicz
1fd0a6aec2 [views] Add missing traits for random_access_view. 2022-06-02 15:41:12 +02:00
Adam Wulkiewicz
bf668908f1 [test] Comment out unused types in merge_elements test. 2022-06-02 14:27:24 +02:00
Barend Gehrels
4960865920 fix compilation error (svg), warnings (unused), style (return), examples and cmake (C++14) 2022-06-01 11:42:20 +02:00
Barend Gehrels
da9ad1eccf [strategies] make cartesian_winding similar to spherical_winding 2022-06-01 11:10:50 +02:00
Adam Wulkiewicz
7491d255e6 Merge pull request #997 from awulkiew/feature/gc9
Add support for GeometryCollection in difference()
2022-05-24 16:45:29 +02:00
Adam Wulkiewicz
dd32a9578b Merge pull request #987 from awulkiew/feature/gc7
Two GC-related utilities
2022-05-24 16:42:50 +02:00
tinko92
bba4603a30 Fix line_interpolate termination condition for single points. (#1003)
* Fix line_interpolation termination condition for single points.

* Use is_point utility and BG_CONDITION macro to prevent potential msvc 2017 warning over constant condition without if constexpr.
2022-05-23 12:49:21 +03:00
Adam Wulkiewicz
991a996732 Merge pull request #996 from awulkiew/feature/gc8
[relate] Refactor relate utilities and implementation.
2022-05-19 13:35:27 +02:00
Vissarion Fisikopoulos
f20bda6104 Fix auto return in distance_cross_track strategy (#1005) 2022-05-19 12:32:33 +03:00
Adam Wulkiewicz
e25ace62f2 [relate] Remove unused, commented-out, GC-related code.
Rename some functions.
2022-05-18 23:33:06 +02:00
Adam Wulkiewicz
003fe21d27 [test][difference] Add test case for GC output and non-GC inputs. 2022-05-16 12:52:54 +02:00
Adam Wulkiewicz
ab58844ef1 [difference] Add support for output GC for non-GC inputs. 2022-05-16 12:52:12 +02:00
tinko92
6235b8ae78 Change broken postgis.org links to postgis.net (#999) 2022-05-16 08:54:17 +02:00
Adam Wulkiewicz
2e56818783 [test][difference] Add test cases for difference of GCs. 2022-05-07 16:21:17 +02:00
Adam Wulkiewicz
146e572fa0 [difference] Add support for GC and DG in difference(). 2022-05-07 16:20:33 +02:00
Adam Wulkiewicz
25ad304fa7 [views] Add geometry_collection_view. 2022-05-07 16:19:58 +02:00
Adam Wulkiewicz
2c15bae453 [algorithms] Add utility detail::make_rtree() of GC elements. 2022-05-07 16:19:06 +02:00
Adam Wulkiewicz
f80cacc4cb [relate] Refactor relate utilities and implementation.
Implement boundary_checker and follow helpers for geometry collection.
They are commented-out for now because they are not used anywhere.
The code is there in case they were needed in the future.
2022-05-03 14:16:45 +02:00
Adam Wulkiewicz
9ca0257f5d [algorithms] Add support for Segments and MultiPoints in point_on_border
Fix point_on_border for Points of different types.
2022-05-02 19:53:27 +02:00
Adam Wulkiewicz
e2496e2fed [doc] Update 1.79 release notes. 2022-04-27 21:44:44 +02:00
Adam Wulkiewicz
f3d276c8f0 [views] In random_access_view prefix detail namespace
Distinguish between geometry::detail and traits::detail used in
the adaptation of c_array.
2022-04-13 15:22:45 +02:00
Adam Wulkiewicz
729ba71826 [test][algorithms] Add merge_elements test 2022-04-13 15:22:45 +02:00
Adam Wulkiewicz
7af3d50a6f [algorithms] Add merge_elements algorithm for GC 2022-04-13 15:22:45 +02:00
Adam Wulkiewicz
cf79637b40 [test][views] Add random_access_view tests 2022-04-13 15:22:45 +02:00
Adam Wulkiewicz
b8e7811830 [views] Add random_access_view of GC 2022-04-13 15:22:44 +02:00
Adam Wulkiewicz
0f0ac7e823 Merge pull request #992 from awulkiew/fix/disjoint
[test][disjoint] Add tests for box vs open ring.
2022-04-13 12:23:54 +02:00
Adam Wulkiewicz
f4ad328896 [test][disjoint] Add tests for box vs open ring.
Tests for issues: #837 and #982
2022-04-13 12:07:46 +02:00
Barend Gehrels
577de29211 [fix] disjoint and relate with const types 2022-04-13 10:09:53 +02:00
Adam Wulkiewicz
9c3faa4d3c Merge pull request #991 from stefan301/fix-cpp20-compile-error
Fix c++20 compilation errors related to conditional expression
2022-04-12 12:59:54 +02:00
Adam Wulkiewicz
031239487c Merge pull request #990 from Mitsuhiko-Matsukawa/patch-1
Check return value from fe_segment_range_with_closure in for_each.hpp
2022-04-12 12:59:31 +02:00
stefan301
1a44b6914f Fix c++20 compilation errors related to conditional expression with int and floating_point_type
A floating_point_type with implicit conversions can lead to this C++20 compilation error:

boost\geometry\policies\robustness\segment_ratio.hpp(232,1): error C2445: result type of conditional expression is ambiguous: types 'int' and '<floating_point_type>' can be converted to multiple common types
2022-04-11 16:16:59 +02:00
Mitsuhiko-Matsukawa
816060b858 Update for_each.hpp 2022-04-08 21:27:14 +08:00