Barend Gehrels
324249bb2d
[copy_segment_point] change offset with modulo, add to box, update unit test
2020-12-09 13:52:07 +01:00
Barend Gehrels
abaa211d3a
[sort_by_side] fix cases where the cluster point is approached by segments, but the last point before is colocated with the turn itself
...
This fixes 50% of the errors currently found by recursive_polygons_buffer (when rescaling is turned off)
2020-12-02 14:19:50 +01:00
Barend Gehrels
77838a8995
[copy_segment_point] change implementation to allow also negative offsets,
...
including unit test
2020-12-02 13:19:15 +01:00
Barend Gehrels
bc77b4889b
Merge pull request #773 from barendgehrels/fix/fraction-by-arrival
...
Fix turns where segments arrive at an intersection point, or leave
2020-11-25 10:24:25 +01:00
Barend Gehrels
42bd7cfe95
[turns] fix precision when turns are arriving or leaving.
...
Then their fractions should be 1 or 0 (and not nearly so)
2020-11-25 10:21:16 +01:00
Adam Wulkiewicz
632d1fcb43
Merge pull request #772 from awulkiew/fix/vs2015_workaround
...
Add constexpr and boost::variant workarounds for vs2015.
2020-11-23 02:50:50 +01:00
CG-SD
35a02b7ee6
[extensions][wkb] Fix risk of undefined behavior when parsing a byte_order byte
...
* fixed risk of undefined behavior when parsing a byte_order byte
tried to parse a spatialite WKB blob with this code but the byte_order byte was replaced by a '69' token :
parsing this byte is successful but the value read is not part of the enum, the function returns true but the order parameter is left untouched.
Calls to that function elsewhere in the code do not initialise the order parameter.
see 869e72fc01/include/boost/geometry/extensions/multi/gis/io/wkb/detail/parser.hpp (L83)
another option would be to return false in that case, but it didn't fit my need
* Update parser.hpp
typo fix
2020-11-21 02:53:39 +01:00
Adam Wulkiewicz
40aff062ce
Merge pull request #776 from awulkiew/fix/github_env
...
[ci] Replace set-env with env. file in GitHub scripts.
2020-11-18 19:45:45 +01:00
Adam Wulkiewicz
4305bc8a73
[ci] Replace set-env with env. file in GitHub scripts.
2020-11-18 17:12:33 +01:00
Vissarion Fisikopoulos
5351d98305
Fix unused parameter warnings ( #775 )
2020-11-18 15:51:59 +02:00
Adam Wulkiewicz
0b55a946b5
Add constexpr and boost::variant workarounds for vs2015.
2020-11-07 23:22:49 +01:00
Adam Wulkiewicz
f510cf2744
[area] Fix area_result for boost::variant and default_strategy.
2020-11-07 21:41:51 +01:00
Barend Gehrels
ee3509f2f3
Merge pull request #769 from barendgehrels/fix/start-turns
...
Fix/start turns
2020-11-04 09:44:09 +01:00
Adam Wulkiewicz
4f128c4135
[test] Add comment in equals test.
2020-11-03 04:25:06 +01:00
Barend Gehrels
271c5ad52c
[turns, buffer] add cases from robustness test going wrong, some fixed with start turn
2020-10-28 14:50:24 +01:00
Barend Gehrels
3e111a0302
[turns] without rescaling, include start turns in calculation
2020-10-28 14:27:26 +01:00
Adam Wulkiewicz
1243579bf0
Merge pull request #767 from awulkiew/feature/tuple
...
Modernize tuple-related code.
2020-10-21 16:34:03 +02:00
Adam Wulkiewicz
3402c9101d
Replace boost::tuple with std::tuple or custom classes.
...
Modernize tuple support.
2020-10-21 16:21:06 +02:00
Barend Gehrels
9989780d41
Merge pull request #758 from barendgehrels/test/add_limits
...
Conform the countset, replace many #ifdefs with expectation limits
2020-10-21 10:21:17 +02:00
Barend Gehrels
5f677775ef
[TEST] Conform the countset, replace many #ifdefs with expectation limits and apply it for float, double, long double (in many tests)
2020-10-21 10:18:56 +02:00
Adam Wulkiewicz
4c1a7f8f3d
Merge pull request #766 from awulkiew/feature/range
...
Include only necessary headers of Boost.Range.
2020-10-18 18:14:28 +02:00
Adam Wulkiewicz
e3b190c5b2
Merge pull request #755 from ayaankhan98/develop
...
[fix] #750 : misspelled config macros
2020-10-16 16:26:09 +02:00
Adam Wulkiewicz
54f141779b
Include only necessary headers of Boost.Range.
2020-10-16 01:23:06 +02:00
Adam Wulkiewicz
7b8b3f694a
Merge pull request #759 from awulkiew/feature/static_assert
...
Replace MPL_ASSERT with std static_assert.
2020-10-16 01:03:34 +02:00
Adam Wulkiewicz
aeb81ebfd6
Replace MPL_ASSERT with std static_assert.
...
Also include only necessary headers from Boost.Range.
2020-10-16 00:31:22 +02:00
Barend Gehrels
6e5d9a136f
Merge pull request #762 from barendgehrels/test/robustness
...
[test] Update robustness tests:
2020-10-13 18:26:11 +02:00
Barend Gehrels
64c09d07f0
Merge pull request #761 from barendgehrels/remove-ttmath
...
Remove ttmath
2020-10-13 18:25:34 +02:00
Adam Wulkiewicz
169ccae36d
[ci] Get public key for LLVM in github script.
2020-10-12 20:37:10 +02:00
Adam Wulkiewicz
b6a427e65f
Merge pull request #751 from lpranam/c2146
...
resolve c2146 on vs15 with area_result declaration
2020-10-12 20:12:37 +02:00
Pranam Lashkari
055684bc41
resolve c2146 on vs15 with area_result declaration
2020-10-12 19:12:54 +05:30
Barend Gehrels
29d0a0fc5a
[test] Update robustness tests: Remove boost.timer, adapt for multi precision, align with each other
2020-10-07 16:50:06 +02:00
Barend Gehrels
84e19aff1c
[extensions] remove HAVE_TTMATH and other occurances of ttmath
2020-10-07 14:06:04 +02:00
Barend Gehrels
45d624af9b
[cleanup] remove HAVE_TTMATH and other occurances of ttmath
2020-10-07 14:05:28 +02:00
Barend Gehrels
869e72fc01
Merge pull request #757 from barendgehrels/test/remove-unused-numeric-types
...
Clean up antique usage of numeric types in tests and documentation
2020-10-07 10:09:25 +02:00
Adam Wulkiewicz
ab9f1de1ad
Merge pull request #748 from awulkiew/feature/type_traits
...
Remove direct usage of Boost.MPL and Boost.TypeTraits from the library.
2020-10-01 19:06:51 +02:00
Barend Gehrels
3272220a3c
[test][doc] Clean up numeric types in tests and adapt documentation
2020-09-30 11:20:44 +02:00
Barend Gehrels
a4b2e6195e
Merge pull request #754 from barendgehrels/fix/buffer-mp
...
Fix/buffer mp
2020-09-30 10:18:33 +02:00
Barend Gehrels
0fd961b595
[buffer] specify the correct types for monotonic sections and partitioning,
...
and re-introduce moving iterators to monotonic sections because it
performs around 25% better
2020-09-30 10:15:32 +02:00
Barend Gehrels
f77aeabc24
[buffer][test] update robustness test for buffer
2020-09-30 10:15:32 +02:00
Barend Gehrels
5eb1e809e9
[buffer][fix] Fix distance measure for use in multi precision types
2020-09-30 10:14:10 +02:00
Ayaan Khan
83d8987426
[fix] #750 : misspelled config macros
2020-09-24 12:39:12 +05:30
Barend Gehrels
5fe26e45b4
Merge pull request #752 from barendgehrels/buffer/fix_type_conflicts
...
[buffer] Several changes necessary to handle different types
2020-09-13 22:06:09 +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
dd5ae391bd
Move type_traits and sequence tools to util namespace.
2020-09-10 23:37:55 +02:00
Adam Wulkiewicz
9a248be454
[algorithms] Replace MPL sequences in relate().
2020-09-10 01:26:39 +02:00
Adam Wulkiewicz
d967c8f08d
[geometries] Replace MPL sequence with parameter pack in specialization of point_type for boost::variant.
2020-09-09 18:05:01 +02:00
Adam Wulkiewicz
22b2031dad
[util][strategies] Add more sequence utilities, remove type_pair and integer_pair, use sequences instead.
2020-09-09 18:02:50 +02:00
Barend Gehrels
9e1a4373dc
[buffer] Several changes necessary to handle different types (float, long double, boost MP)
2020-09-09 14:11:36 +02:00
Adam Wulkiewicz
b0b2fd6b86
[core][util] Deprecate core/is_areal.hpp
2020-09-05 21:56:01 +02:00
Adam Wulkiewicz
9c095f4d37
Implement compile-time sequence utilities and use them instead of MPL.
...
distance and length result types are reimplemented.
distance result can no longer be variant type. This might rarely occur
if in a variant type there were two geometries using different
coordinate types and one of them were of greater precision than double.
Deprecate combine_if, compress_variant and transform_variant utilities.
2020-09-05 17:44:11 +02:00