Barend Gehrels
0c8f953ee9
[simplify][test] splitted tests such that test with strategy does not
...
test the version without strategy, to avoid mixing strategy types
2014-07-09 12:00:20 +02:00
Barend Gehrels
64303076dc
[simplify][test] added test with strategy
2014-07-09 11:29:30 +02:00
Barend Gehrels
de7ae5dd65
[simplify] prepare for other simplify strategy: added testcase
2014-07-09 11:25:17 +02:00
Barend Gehrels
999ba36e06
[simplify] prepare test for distance object instead of always value, and
...
added overload accepting a strategy
2014-07-09 11:24:50 +02:00
Adam Wulkiewicz
9cfee81a09
[geometry] Replace tabs with spaces
2014-07-08 02:27:17 +02:00
Barend Gehrels
b6b49f5308
[buffer] fix check of buffer_flat_end for inside
2014-07-06 20:22:04 +02:00
Barend Gehrels
da1323716a
[buffer] Pass side strategy
2014-07-03 19:59:28 +02:00
Menelaos Karavelas
f2c8ccefca
[test][is_valid] add as test case the polygon used in the documentation
...
example for is_valid
2014-07-02 11:28:40 +03:00
Menelaos Karavelas
6490d2db4a
[test][is_valid] add one more test case: add a polygon with many holes
...
(important note here: many means more than the number of turns)
2014-07-02 02:29:06 +03:00
Adam Wulkiewicz
e9178b6a80
Merge pull request #75 from mkaravel/feature/is_simple
...
Feature/is simple
2014-07-01 17:27:01 +02:00
Barend Gehrels
b637012bf3
[test] add bigobj flag for union/buffer
2014-06-28 13:22:32 +02:00
Menelaos Karavelas
a156ba17dc
[test][is_valid] add test cases for polygons and multi-polygons inspired by email
...
exchanges with Barend Gehrels
2014-06-27 13:02:39 +03:00
Menelaos Karavelas
f0f037df2b
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/is_simple
2014-06-26 22:52:43 +03:00
Barend Gehrels
7baf1a29e5
[buffer] We have to simplify the ring before to avoid very small-scaled
...
features in the original (convex/concave/convex) being enlarged
in a very large scale and causing issues (IP's within pieces).
This might be reconsidered later. Simplifying with a very small
distance will never be visible in the result,
if it is using round joins. For miter joins they are even more
sensitive to small scale input features, however the result will
look better.
A distance strategy can change behaviour (make larger - set simplify
distance to 0.0 to avoid simplification)
This fixes the parcel issue(s)
2014-06-25 13:32:42 +02:00
Menelaos Karavelas
bcaf4a374a
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/is_simple
2014-06-25 01:54:15 +03:00
Barend Gehrels
7f3b509fb5
[buffer] use endcap strategy for spikes. Check jointype also (again)
...
for line-line intersection because it is based on buffered segments.
2014-06-24 22:48:04 +02:00
Menelaos Karavelas
a9526bbbc5
[test][is_valid] add multi-polygon test cases where one polygon is inside
...
a hole of another
2014-06-24 14:47:53 +03:00
Menelaos Karavelas
ec2417f701
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/is_simple
2014-06-24 14:08:06 +03:00
Menelaos Karavelas
346784d5e5
[test][is_valid] move validity check functions/classes and related
...
code to file test_is_valid.hpp; make testing more elaborate: for rings,
convert them to polygons and multi-polygons and test them as such;
for polygons, convert them to multi-polygons and test them as such;
2014-06-24 13:43:52 +03:00
Barend Gehrels
9b6aa189bd
[buffer] changes in includes/defines
2014-06-23 22:40:03 +02:00
Barend Gehrels
aa307b5ad2
[buffer] add join_selector and use it before generating the join.
...
This moves responsibility of generation to the calling code, removes it
from the join strategies. It also enables using the end-strategy for the
spikes
2014-06-23 22:39:29 +02:00
Menelaos Karavelas
91df67e3ce
[test][is_valid] add more tests cases for polygon and multi-polygons
2014-06-23 15:44:23 +03:00
Menelaos Karavelas
e7e7f958fb
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/is_simple
...
Conflicts:
include/boost/geometry/algorithms/detail/is_simple/debug_print_boundary_points.hpp
include/boost/geometry/algorithms/detail/is_valid/polygon.hpp
2014-06-22 23:09:47 +03:00
Barend Gehrels
51121c1e35
Merge branch 'develop' of github.com:boostorg/geometry into develop
2014-06-22 21:07:36 +02:00
Barend Gehrels
5c3f1f2006
[buffer] fix limit which was too low for LatLong coordinates. Also fix in test
...
for tolerance which was too high. Added unit test
2014-06-22 19:54:13 +02:00
Barend Gehrels
b6ba959f7b
[buffer][test] SVG enhancements
2014-06-22 19:50:06 +02:00
Adam Wulkiewicz
3b1c327922
[test] Replace automatic unit tests with minimal test framework included by geometry_test_common.hpp.
...
This should silence the msvc-8.0 errors - ambiguous enable_if/disable_if.
2014-06-22 17:57:30 +02:00
Barend Gehrels
b1bcc9c4dc
[buffer] test - indentation, remove old comment
2014-06-22 16:11:58 +02:00
Barend Gehrels
2f6abfce3f
[buffer] test: remove old code and instead add 3 parcels
...
which went wrong earlier or still have issues
2014-06-22 16:08:56 +02:00
Adam Wulkiewicz
17f08e3ac4
Merge pull request #66 from mkaravel/feature/debug_macro
...
Feature/debug macro
2014-06-22 15:29:16 +02:00
Barend Gehrels
3628e85a25
[buffer] fix non-intersecting sides around concave points
...
there was no segment in between generated, therefore if the side-segments
did not intersect (e.g. donut_diamond in polygon_buffer.cpp unit test),
there was no intersection at all. Now a helper piece is generated and it
will intersect.
2014-06-22 15:12:40 +02:00
Barend Gehrels
7df029b176
[buffer] make buffer (miter, round) around spike possible
...
including unit testcase. For miters, the limit is enlarged (after
visual inspection of spike_simplex_miter)
2014-06-20 22:34:40 +02:00
Menelaos Karavelas
2eea41b82e
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/is_simple
2014-06-20 12:30:18 +03:00
Adam Wulkiewicz
05891db57a
[test][buffer] Remove unused typedefs.
2014-06-20 00:00:55 +02:00
Adam Wulkiewicz
38afbb322f
[test][buffer] Remove unused typedefs.
2014-06-19 23:57:01 +02:00
Barend Gehrels
289a982d89
[difference] change in testcase, fix for MSVC, enabled for other compilers.
...
enabled for all FP types
2014-06-19 22:07:32 +02:00
Barend Gehrels
c5de26945b
[overlay] use uniform robust policy, this obsoletes zoom_to_robust
2014-06-19 19:10:28 +02:00
Menelaos Karavelas
7656be4221
[test][is_valid] explicitly set the 2nd template parameter of
...
check_iterator_range to false
2014-06-19 13:59:01 +03:00
Menelaos Karavelas
17ed15b44c
[test][algorithms] prefix (commented) GEOMETRY_TEST_DEBUG macro with BOOST_
2014-06-19 12:37:49 +03:00
Menelaos Karavelas
4a4d52b082
[geometry][test] prefix macro GEOMETRY_TEST_DEBUG with BOOST_
2014-06-19 12:24:27 +03:00
Barend Gehrels
76a56c787c
[buffer] exclude failing testcase for MSVC
2014-06-18 16:51:13 +02:00
Barend Gehrels
ea222cd5b3
Merge branch 'develop' of github.com:boostorg/geometry into develop
2014-06-18 14:24:53 +02:00
Barend Gehrels
dadfe91378
[buffer][test] use other robust_point for counting dupplicate points
2014-06-18 14:08:05 +02:00
Barend Gehrels
0194072516
[buffer][test] optinally skip self-intersection check
2014-06-18 14:07:21 +02:00
Barend Gehrels
84d240ee9d
[buffer][test] visit collection twice for mapping
2014-06-18 14:02:18 +02:00
Menelaos Karavelas
4f40ffd313
[test][algorithms][is_simple] remove obsolete includes;
...
put WKTs of test cases in a single line;
use BOOST_CHECK_MESSAGE instead of BOOST_CHECK;
polish some variable names;
add test for variant support;
2014-06-18 12:59:52 +03:00
Menelaos Karavelas
236bb1b9ac
[test][algorithms][is_valid] fix order of booleans in BOOST_CHECK_MESSAGE;
...
add test for variant support;
2014-06-18 12:54:59 +03:00
Menelaos Karavelas
a4402a9a31
[test][algorithms][is_valid] replace "const bool" and "static const bool" by "bool const"
2014-06-18 04:54:16 +03:00
Menelaos Karavelas
4ab3bd3529
[test][is_valid] add a few more test cases
2014-06-18 04:31:22 +03:00
Menelaos Karavelas
3a1ee0dbdb
[test][is_valid] make is_valid test more elaborate by testing all
...
types of rings, polygons and multipolygons (open/closed, cw/ccw),
and by testing both then spikes/duplicates are allowed or not
2014-06-17 16:34:32 +03:00