Menelaos Karavelas
2de36a37df
[test][geometry] replace instances of "num_point() == 0" by "is_empty()";
...
replace instances of "num_points() > 0" by "! is_empty()";
2015-06-03 17:18:55 +03:00
barendgehrels
2b1dfaddb6
[buffer] use the new is_empty
2015-06-03 14:50:37 +02:00
Barend Gehrels
687997a35f
Merge pull request #303 from mkaravel/feature/is_empty
...
New algorithm: is_empty
2015-06-03 14:46:55 +02:00
Menelaos Karavelas
d80b3510f3
[test][algorithms][is_empty] update test cases' result following the changes
...
in polygon_is_empty class (checking of interior rings); explicitly check that
the result of "is_empty()" is the same as the result of "num_points() == 0";
2015-06-03 15:18:32 +03:00
barendgehrels
68648da969
[test][buffer] Don't leave envelope uninitialized if input geometry is empty
...
(this is a result of new envelope calculation)
2015-06-03 11:54:48 +02:00
barendgehrels
3b0529d8d9
[test][buffer] Add new test testing boost::geometry::buffer
...
(the detailed tests do test buffer_inserter)
2015-06-03 11:54:03 +02:00
Adam Wulkiewicz
1ef54bb437
Merge pull request #287 from awulkiew/fix/area_huiller
...
Fix/area huiller
2015-06-03 09:27:05 +02:00
Menelaos Karavelas
1e576d3a30
[test][algorithms][is_empty] add unit test for algorithm is_empty
2015-06-03 01:06:01 +03:00
Adam Wulkiewicz
7773f04541
[test][algorithms][maximum_gap] Remove the use of Boost.Assign.
...
Do not use Boost.Assign nor Boost.Tuple in the test.
This should fix the compilation error on GCC 4.4 c++0x.
2015-05-30 01:16:13 +02:00
barendgehrels
11d174d60e
[buffer][test] re-comment buffer_countries
2015-05-29 19:59:54 +02:00
barendgehrels
b849991dcd
[buffer][test] renamed testcases
2015-05-29 19:58:42 +02:00
barendgehrels
525613b461
[buffer][test] renamed testfiles
2015-05-29 19:53:11 +02:00
Adam Wulkiewicz
6e823025e0
[test][relops] Rename the tests.
2015-05-29 00:00:22 +02:00
Menelaos Karavelas
c844000d0e
Merge pull request #289 from mkaravel/feature/envelope_and_expand_for_spherical_cs
...
New feature: envelope and expand for spherical equatorial coordinate system
2015-05-28 21:04:06 +03:00
Menelaos Karavelas
6054352dd1
[test][algorithms][set operations L/L] apply coding rules
2015-05-28 11:43:28 +03:00
barendgehrels
cdf014e35d
[buffer] propagate error information from strategy to buffer inserter
2015-05-27 10:56:56 +02:00
Adam Wulkiewicz
593521980a
Merge branch 'develop' into feature/relate
...
Conflicts:
doc/release_notes.qbk
2015-05-26 17:26:38 +02:00
Adam Wulkiewicz
1df894c44a
[centroid][test] Update copyrights.
2015-05-26 00:44:56 +02:00
Adam Wulkiewicz
9f5608d5e9
[test][centroid] Add test for very long Linestring for which the centroid cannot be calculated.
2015-05-25 15:25:30 +02:00
barendgehrels
ad088fcf02
[buffer] stop in case of numeric errors in side strategy
2015-05-24 11:22:45 +02:00
barendgehrels
62fa2ccc59
[buffer][test] fix commented section (distance_left)
2015-05-23 23:46:14 +02:00
barendgehrels
1eacb2c096
[buffer][test] fix alternate box setting
2015-05-23 23:45:48 +02:00
barendgehrels
5370e2494d
[buffer][math] check for inf when checking on equals
...
This fixes an error in buffer for geometries with extreme coordinate differences
(though the generated buffer is not correct then)
2015-05-23 23:45:24 +02:00
Menelaos Karavelas
2deae95273
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/envelope_and_expand_for_spherical_cs
2015-05-22 10:06:35 +03:00
Menelaos Karavelas
24c394454f
[test][algorithms][expand] rearrange and cleanup code; allow for two possible MBRs as output
2015-05-22 09:48:29 +03:00
Menelaos Karavelas
6c77395443
[test][algorithms][envelope] rearrange and clean up code
2015-05-22 09:48:04 +03:00
Menelaos Karavelas
cc9717b9db
[test][algorithms][envelope][expand] deactivate/modify test cases where latitude needs to
...
be normalized; make use of math::r2d<>() and math::d2r<>() constants;
2015-05-20 11:17:09 +03:00
Menelaos Karavelas
5ecc576bf2
[test][algorithms][equals] deactivate test cases where latitude needs to be normalized as well;
...
add test cases with points on the spheroid that also have a third coordinate (possibly height);
2015-05-20 11:15:44 +03:00
Adam Wulkiewicz
395d7b89f9
[test][relate] Add additional tests for de9im::mask.
2015-05-18 19:11:35 +02:00
Adam Wulkiewicz
bec216923f
[test][buffer] Fix compilation error - BOOST_MESSAGE unknown.
2015-05-15 13:25:52 +02:00
Menelaos Karavelas
e66f255acf
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/envelope_and_expand_for_spherical_cs
2015-05-14 12:23:19 +03:00
Barend Gehrels
9d9ee614a1
Merge branch 'develop' into feature/buffer
2015-05-13 18:01:32 +02:00
Adam Wulkiewicz
855d5d9c2f
[test][relate] Rename test file relate_pointlike_xxx.cpp to relate_pointlike_geometry.cpp
2015-05-13 17:53:58 +02:00
Adam Wulkiewicz
dd2ff33b52
Merge pull request #292 from mkaravel/fix/degree_radian_converter
...
Fix degree_radian_converter
2015-05-13 14:12:24 +02:00
Adam Wulkiewicz
6029a4cd1b
Merge pull request #271 from mkaravel/feature/disjoint_point_point_on_spheroid
...
New feature: disjoint(point, point) for points on a spheroid
2015-05-13 14:11:35 +02:00
Barend Gehrels
d881d5811d
[buffer][test] add comment
2015-05-13 13:16:40 +02:00
Barend Gehrels
6158064410
[buffer] performance optimization: set the center point for buffers around
...
(multi)points, calculate min/max radius
and (when checking turn w.r.t. piece) check turn distance to center,
in most cases leave early
Including unit test. For multipoint_b_500k this increases performance with
a factor 6 (340 seconds -> 55 seconds)
Note, this is done for buffers around points but could be done for other
geometry types too (using e.g. centroid)
2015-05-13 13:08:22 +02:00
Barend Gehrels
61d3ae6b78
[buffer] performance improvement for point-pieces:
...
first check if it is in range
Including adaption of unit tests
Performance goes from 24 seconds (with side_of_intersection)
or 14 seconds (without) to 10 seconds (with side_of_intersection)
2015-05-13 10:58:07 +02:00
Barend Gehrels
b546a6fa21
Merge branch 'develop' into feature/buffer
2015-05-13 10:14:10 +02:00
Menelaos Karavelas
31391fe166
[test][algorithms][intersection] add test cases for intersection(linestring, box)
...
and intersection(multi_linestring, box)
2015-05-11 13:38:26 +03:00
Menelaos Karavelas
535a7049f9
[geometry] replace uses of constants math::d2r and math::r2d by corresponding free functions
2015-05-08 12:23:23 +03:00
Barend Gehrels
ff1f2ab05c
[buffer][test] by default turn off labels for within turns
2015-05-05 16:43:23 +02:00
Barend Gehrels
d7a25934c3
[buffer][test] exclude case q2 for new approach.
...
As mailed to Adam: "But that is not related to the new method
- it is only by chance that it now fails and earlier succeeded.
This is a known problem which I still need to solve:
if two IP's are exactly on top of each other,
where a u/u turn is also involved, it can fail
(depending on sort-order, so depending on configuration)."
2015-05-05 16:42:57 +02:00
Barend Gehrels
c5ef4f912d
[buffer][fix] fix errors in multi_point cases
...
by using side_of_intersection in point_piece
2015-05-05 16:01:08 +02:00
Barend Gehrels
01d324288b
[buffer][test] add option to buffer per turn
...
also some other related changes in svg creation
2015-05-05 15:59:31 +02:00
Barend Gehrels
73394e99eb
[buffer][test] use round points for multi_points (not relevant besides
...
creating the rescale policy and svgs)
2015-05-05 15:57:44 +02:00
Barend Gehrels
df329d8c44
[buffer][test] extract svg code from test_buffer into test_buffer_svg
2015-05-05 15:56:46 +02:00
Barend Gehrels
034a5461f0
Merge branch 'develop' into feature/buffer
2015-05-05 10:08:49 +02:00
Menelaos Karavelas
d5522eaa14
[test][algorithms][maximum gap] add unit test for maximum gap algorithms for intervals
2015-05-04 11:07:45 +03:00
Menelaos Karavelas
5525a492a3
[test][algorithms][envelope][expand] include unit new tests for envelope and
...
expand in Jamfile
2015-05-04 10:27:22 +03:00