Commit Graph

8536 Commits

Author SHA1 Message Date
Menelaos Karavelas
2550a5d040 [geometries][point] update copyright header; replace derivation from CoordinateSystem
by a private typedef (this provides the necessary type checking for the units for
non-Cartesian coordinate systems);
2014-10-30 01:40:52 +02:00
Menelaos Karavelas
2027c9a905 [core][cs] update copyright header; make coordinate_system_units a struct; 2014-10-30 01:39:26 +02:00
Adam Wulkiewicz
aaa96982cf [test] Move distance() tests to separate directory. 2014-10-30 00:32:02 +01:00
Barend Gehrels
0be9f2dfca [test][buffer] test symmetric distance strategy too, if right distance
is not specified. This tests the fix in last commit, already merged to master (for 1.57)
2014-10-29 22:54:06 +01:00
Barend Gehrels
c6fc633cdb Merge branch 'develop-1.57' into develop 2014-10-29 22:43:40 +01:00
Barend Gehrels
c2266c00f8 Merge branch 'prepare' 2014-10-29 22:37:05 +01:00
Barend Gehrels
87cc28a312 Merge branch 'develop-1.57' into prepare 2014-10-29 22:34:00 +01:00
Barend Gehrels
47811c4248 [buffer] fix symmetric distance strategy for deflate 2014-10-29 22:17:12 +01:00
Menelaos Karavelas
6beccce25f [core][cs] change namespace core_dispatch to namespace core_detail;
for non-Cartesian CS's do not derive from core_detail::coordinate_system_units,
but rather use core_detail::coordinate_system_units to define the units type;
2014-10-29 19:43:13 +02:00
Barend Gehrels
26da077654 [test][buffer] enhance SVG display for deflate, with pieces displayed 2014-10-29 17:27:25 +01:00
Barend Gehrels
254999addd [buffer] Fix case for square with buffer-distance = half the size, IP's
are on border of original and should be discarded for both inflate/deflate
This fixes the cases added to unit tests before
2014-10-29 17:26:43 +01:00
Barend Gehrels
c8af337ad7 [test][buffer] remove _neg suffix from test-case-name, it is done automatically 2014-10-29 12:50:48 +01:00
Barend Gehrels
79b944483d [test][buffer] add simplex square for failing deflate case 2014-10-29 12:50:20 +01:00
Menelaos Karavelas
c71e09d389 [geometries][point] make the point derive privately from the
coordinate system; the advantage of that is that a non-Cartesian point defined
with bg::cs::spherical<T>, bg::cs::geographic<T>, etc., where T is neither
bg::degree not bg::radian cannot even be instantiated given the stronger
type checking implemented in core/cs.hpp for the non-Cartesian coordinate
systems;
2014-10-29 13:40:50 +02:00
Menelaos Karavelas
7a001fbbc1 [core][cs] add stronger type checking for template parameter of bg::cs::spherical,
bg::cs::polar, bg::cs::spherical_equatorial and bg::cs::geographic; the only
allowed values for this template parameter are bg::degree and bg::radian;
2014-10-29 13:38:30 +02:00
Barend Gehrels
32d5c78623 [test][buffer] add deflate test for multi, including failing for distance=half of square 2014-10-29 12:35:41 +01:00
Barend Gehrels
b98c653335 [test][buffer] test ccw by default 2014-10-29 12:15:15 +01:00
Barend Gehrels
39c149ed22 [test][buffer] more deflation tests and move order 2014-10-29 12:14:43 +01:00
Barend Gehrels
761fc9f8b1 [test][buffer] uncommented deflated indentation tests, which pass now 2014-10-29 12:00:01 +01:00
Barend Gehrels
8e6268c50e [test][buffer] enhance svg display for test results and deflated polygons.
By default pieces/turns are non visible now
2014-10-29 11:52:25 +01:00
Barend Gehrels
cef05d3bf2 [buffer][test] remove default values for new tests 2014-10-29 11:16:42 +01:00
Barend Gehrels
4a7c63fb17 [buffer][test] add custom-strategy version and test scenario which did round-join buffer fail 2014-10-29 11:16:11 +01:00
Barend Gehrels
9a089831f8 [buffer] remove redundant bracket 2014-10-29 10:04:04 +01:00
Adam Wulkiewicz
c411f2bdb3 [test][buffer] Add test cases for Polygon. 2014-10-28 15:07:36 +01:00
Adam Wulkiewicz
b35bead009 [buffer] Suppress MSVC unused parameters warnings. 2014-10-28 15:07:01 +01:00
Adam Wulkiewicz
3500cc4355 [test][buffer] Add CCW test polygons (not tested yet). 2014-10-28 13:49:08 +01:00
Barend Gehrels
84a4963df5 [buffer] use math::pi instead of M_PI 2014-10-27 23:31:00 +01:00
Barend Gehrels
0e642fdba9 Merge branch 'develop' of github.com:boostorg/geometry into develop 2014-10-27 23:27:51 +01:00
Barend Gehrels
daa9d3fcd0 [buffer][fix] fix round join strategy, it should not use acos for non-normalized
dot product. Now we use atan2 to calculate the angles
2014-10-27 23:27:31 +01:00
Barend Gehrels
cda05b592e [buffer] Fix last_segment_index if range (outputted by join strategy) is empty 2014-10-27 23:26:01 +01:00
Adam Wulkiewicz
a5bffff440 Merge pull request #170 from mkaravel/doc/add_back_doc_for_num_segments
[doc][algorithms][num_segments] add back documentation for num_segments algorithm
2014-10-27 22:07:09 +01:00
Adam Wulkiewicz
a47ba4e0f3 Merge pull request #169 from mkaravel/feature/distance
[test][distance] add unit test for distance of pointlike-pointlike geometries
2014-10-27 21:18:16 +01:00
Menelaos Karavelas
32635987e8 [doc][algorithms][num_segments] add back documentation for num_segments algorithm 2014-10-27 22:18:07 +02:00
Menelaos Karavelas
e82e199e00 [test][distance] add unit test for distance of pointlike-pointlike geometries
in the spherical equatorial coordinate system
2014-10-27 22:11:55 +02:00
Barend Gehrels
693215b9c2 Merge branch 'develop-1.57' into develop 2014-10-24 20:28:07 +02:00
Barend Gehrels
099b9fefd9 Merge branch 'prepare' 2014-10-24 20:26:48 +02:00
Barend Gehrels
e7abda8667 Merge branch 'develop-1.57' into prepare 2014-10-24 19:39:38 +02:00
Barend Gehrels
a5b9cfe0bc [buffer][fix] fix for open input of 3 points 2014-10-24 19:39:01 +02:00
Barend Gehrels
d25f604ac1 Merge branch 'prepare' 2014-10-24 16:03:05 +02:00
Barend Gehrels
095f4c6798 Merge branch 'develop-1.57' into prepare 2014-10-24 15:58:05 +02:00
Barend Gehrels
0f72af95f0 [buffer] fix simplify which should work on input ringtype
and added unit test which tests different input/output types w.r.t. point order
(different point types are not yet supported)
2014-10-24 15:52:05 +02:00
Barend Gehrels
ffd3cd1e3d [buffer][test] fix ccw suffix which should use output geometry 2014-10-24 15:33:03 +02:00
Barend Gehrels
745e5a94e7 [buffer][doc] add support for ccw / degenerated input to release notes 2014-10-24 15:19:12 +02:00
Barend Gehrels
6f09c5fd98 [buffer][test] test counter clockwise output for (multi)linestrings / points 2014-10-24 15:17:05 +02:00
Barend Gehrels
bd4de457d8 [buffer][fix] fixes counter clockwise polygons 2014-10-24 15:02:55 +02:00
Barend Gehrels
b40c1096a4 [buffer][test] fix 3 testcase names 2014-10-24 14:20:15 +02:00
Barend Gehrels
d762543676 [buffer][test] add reported testcase which succeeds 2014-10-24 13:33:17 +02:00
Barend Gehrels
6280a2b67e [buffer] support buffer for degenerate polygons (pointlike, not enough points) 2014-10-24 13:12:10 +02:00
Barend Gehrels
a57e8ffe7f [buffer] make constant local variables const 2014-10-24 12:36:44 +02:00
Barend Gehrels
fd75d83fd1 [buffer][fix] fix output for generated linestrings with two equal points only
It now simplifies first and removes second point if necessary. Also it is
defensive such that generation is stopped if length is 0.
Including unit tests.
2014-10-24 12:36:22 +02:00