Commit Graph

5650 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
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
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
e30bf569ad [crosses] Add support for GC. 2022-06-07 23:22:35 +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
d57a913d4e [union] Comment out the code subtracting the GC elements of the result. 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
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
ab58844ef1 [difference] Add support for output GC for non-GC inputs. 2022-05-16 12:52:12 +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
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
7af3d50a6f [algorithms] Add merge_elements algorithm for GC 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
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
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
Vissarion Fisikopoulos
f27b19cde0 [srs] Accurate methods for ellipsoidal tmerc (#978) 2022-04-08 13:22:32 +03:00
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
8774b7b2d7 [major change] change the default, disable rescaling by default 2022-02-23 12:49:58 +01:00
Adam Wulkiewicz
3fe21c2955 [index] Promote content and margin result to double instead of long double 2022-02-22 22:22:00 +01:00
Vissarion Fisikopoulos
01374135af Replace check_iterator_range by std::any_of, std::all_of or std::none_of (#934) 2022-02-15 15:44:54 +02:00
Adam Wulkiewicz
5627d023da Merge pull request #936 from awulkiew/fix/envelope
Fix envelope of polygon containing pole.
2022-02-14 17:16:02 +01:00
Vissarion Fisikopoulos
acd3517328 Merge pull request #961 from vissarion/feature/webmerc_projection
Add Web Mercator projection
2022-02-14 17:51:53 +02:00
Adam Wulkiewicz
33b99c1c91 [strategies] Tweak code formatting. Remove unneeded include. 2022-02-08 17:46:32 +01:00
Adam Wulkiewicz
f42971a3f6 Merge branch 'develop' into fix/normalize_spheroidal 2022-02-08 17:25:29 +01:00
Barend Gehrels
9c18680f31 [fix] for integer coordinates, segment intersection now rounds to nearest point 2022-02-07 10:33:15 +01:00
Adam Wulkiewicz
36a4275d39 [util] Fix normalize spheroidal for nan coordinates.
Make sure that assertion doesn't fail for nan longitude.
Make sure that a box containing nan longitude is not considered to be a
band.
2022-01-27 17:21:14 +01:00
Adam Wulkiewicz
6099339544 Merge pull request #966 from awulkiew/fix/simplify
Fix simplify for open rings and improve it
2022-01-20 00:37:41 +01:00
Adam Wulkiewicz
e8f6aaaf12 Merge pull request #968 from awulkiew/fix/extensions2
Fix dissolve and side_robust test
2022-01-20 00:36:44 +01:00
Adam Wulkiewicz
a14aafb706 Merge pull request #963 from awulkiew/fix/rtree_serialization
Fix rtree elements count check in serialization/load.
2022-01-20 00:36:04 +01:00
Adam Wulkiewicz
af264a7441 Merge pull request #959 from awulkiew/fix/get_distance_measure
Propagate umbrella strategy in buffer and overlay.
2022-01-20 00:35:26 +01:00