Commit Graph

3847 Commits

Author SHA1 Message Date
Adam Wulkiewicz
b2dfd7f0c8 [index] Use default Dimension templ. params in content() and margin() algorithms.
Replace traits::dimension<> with geometry::dimension<>.
2014-10-02 19:57:20 +02:00
Adam Wulkiewicz
add58fec8c [iterators] Fix the description of closing_iterator<>. 2014-10-01 16:58:29 +02:00
Adam Wulkiewicz
39802e7923 [core] Add MPL_ASSERT for coordinate dimension > 0 2014-10-01 16:49:49 +02:00
Adam Wulkiewicz
1e968c3590 [index] Add default template parameters in the implementation of is_valid. Remove MPL assert 2014-10-01 16:28:15 +02:00
Barend Gehrels
881c68b206 Merge pull request #151 from mkaravel/fix/distance
[test][algorithms][distance] add test case between linestring and open multipolygon...
2014-10-01 11:07:57 +02:00
Barend Gehrels
cfb66e85b3 [debug] extend operator<< of segment_ratio, now displaying the real value too 2014-10-01 10:24:21 +02:00
Barend Gehrels
5d93d7a116 [debug] fix operator<< of segment_identifier, now using os 2014-10-01 10:23:39 +02:00
Menelaos Karavelas
03d505061a [test][algorithms][distance] add test case between linestring and open multipolygon
where the distance is realized between the linestring and an implicit segment of the
multipolygon
2014-10-01 09:35:46 +03:00
Adam Wulkiewicz
439f570d02 [test][iterators] Fix signed/unsigned comparison warnings in segment_iterator test. 2014-10-01 02:19:37 +02:00
Adam Wulkiewicz
e4e6dbc5e2 [test][iterators] Fix signed/unsigned comparison warnings in point_iterator test. 2014-10-01 02:19:20 +02:00
Adam Wulkiewicz
f1ec0715ee Merge pull request #147 from mkaravel/fix/for_each
[algorithms][for_each] fix bug with for_each_segment for open geometries
2014-09-30 17:53:51 +02:00
Adam Wulkiewicz
6902f0467f Merge pull request #148 from mkaravel/fix/distance
[test][algorithms][distance] add test case for open polygon and linestring
2014-09-30 17:46:03 +02:00
Adam Wulkiewicz
aa5e86edf5 Merge pull request #146 from mkaravel/fix/point_iterator
[algorithms][distance] qualify point_iterator by geometry namespace
2014-09-30 17:44:36 +02:00
Menelaos Karavelas
c81a75f1dd [test][algorithms][distance] add test case for open polygon and linestring
where the distance is materialized between the linestring and the last (implicit)
segment of the polygon
2014-09-30 17:12:50 +03:00
Menelaos Karavelas
ac32f9dd58 [algorithms][for_each] fix bug with for_each_segment for open geometries:
for_each_segment was not considering the last implicit segment of open
geometries; the patch fixes this;
2014-09-30 17:08:15 +03:00
Menelaos Karavelas
f3ee1dedcd [algorithms][distance] qualify point_iterator by geometry namespace
(needed because of the changes in the point_iterator class, namely
the introduction of the bg::detail::point_iterator namespace)
2014-09-30 17:04:34 +03:00
Adam Wulkiewicz
c1fe0b9dfb Merge pull request #144 from mkaravel/feature/point_iterator
Point iterator (change of file/dir layout and implementation design)
2014-09-30 14:13:52 +02:00
Menelaos Karavelas
fb35d9db7a [iterators][segment_iterator] update segment_iterator implementation
following the changes in the point_iterator implementation design
and file/directory layout
2014-09-30 15:04:10 +03:00
Menelaos Karavelas
60f184e3ce [iterators][point_iterator] change file/directory structure for
point iterator; use detail::point_iterator namespace for the
implementation details of the point iterator;
2014-09-30 15:02:20 +03:00
Menelaos Karavelas
b9c496a1d8 [iterators][point_reverse_iterator] mark methods and constructors as inline 2014-09-30 15:00:42 +03:00
Adam Wulkiewicz
f76671507a Merge pull request #141 from mkaravel/feature/segment_iterator
Feature/segment iterator
2014-09-30 12:45:57 +02:00
Menelaos Karavelas
9d75411a90 [test][iterators][segment_iterator] change the return type of segments_begin
and segments_end to be segment_iterator<Geometry const>
2014-09-30 09:53:09 +03:00
Menelaos Karavelas
10ce79898a [iterators][segment_iterator] update implementation of segment_iterator
due to the change of namespace and name of the segment_iterator_type class;
make constructors of bg::segment_iterator class inline; change the return type
of segments_begin and segments_end to be segment_iterator<Geometry const>;
2014-09-30 09:50:47 +03:00
Menelaos Karavelas
404ca1cbe6 [iterators][segment_iterator] move implementation of bg::segment_iterator_type
to bg::detail::segment_iterator namespace; rename the class segment_iterator_type
to iterator_type;
2014-09-30 09:49:26 +03:00
Menelaos Karavelas
029cb92952 [iterators][segment_iterator] fix file-inclusion guarding macro to
reflect true file path
2014-09-29 17:15:23 +03:00
Menelaos Karavelas
67e418e705 [iterators][segment_iterator] move range_segment_iterator class to
detail::segment_iterator namespace; move bg::segment_iterator_value_type
to bg::detail::segment_iterator::value_type;
2014-09-29 17:10:24 +03:00
Menelaos Karavelas
2a0dceece9 [iterators][segment_iterator] correct comments; fix code length to be
at most 80 characters;
2014-09-29 17:06:41 +03:00
Menelaos Karavelas
84b54af205 [iterators][segment_iterator] correct comments 2014-09-29 17:05:35 +03:00
Menelaos Karavelas
bffac4a108 [geometries][pointing_segment] initialize member variables in
default constructor with NULL; in get/set access methods check
that the pointers of the segment are not NULL (via assertion);
remove copy constructor and assignment operator: they are the
same as those the compiler would produce automatically;
2014-09-27 14:04:35 +03:00
Menelaos Karavelas
6388a43089 [iterators][segment_iterator] change the value type of the segment iterator
from referring_segment to pointing_segment
2014-09-26 11:41:20 +03:00
Adam Wulkiewicz
024a904f87 Merge pull request #143 from mkaravel/fix/missing-include
Algorithms/Turns missing include
2014-09-26 10:30:32 +02:00
Menelaos Karavelas
8fc8bd9773 [geometries][pointing_segment] introduce a new segment class called
pointing segment; this segment is default constructible, copy constructible
and assignable; it stores pointers to points instead of the points themselves
(for efficiency); this segment class is meant to be the value type of the
segment iterator;
2014-09-26 10:07:20 +03:00
Menelaos Karavelas
333ef4bbba [test][iterators][segment_iterator] re-arrange the test code;
add test with std::copy algorithm: use the segment iterator
to copy the segments of a geometry into a vector;
2014-09-26 10:05:54 +03:00
Menelaos Karavelas
039f8f7a48 [algorithms][turns] add missing include that causes compilation error
when -DBOOST_GEOMETRY_TEST_DEBUG is defined, and re-arrange order of includes
2014-09-26 09:44:21 +03:00
Adam Wulkiewicz
1018f24dbd Merge pull request #140 from plopresti/warnings/gcc412
[core] Fix signed/unsigned comparison warnings
2014-09-24 12:46:57 +02:00
Menelaos Karavelas
08c0eee65f [test][iterators] add the unit test for segment_iterator in the Jamfile;
re-arrange the unit tests in the iterators' Jamfile in alphabetical ordering;
2014-09-24 08:51:51 +03:00
Menelaos Karavelas
80b5e6700f [test][iterators][segment_iterator] add unit test for the segment_iterator 2014-09-24 08:50:48 +03:00
Menelaos Karavelas
d2be8d47a3 [iterators][segment_iterator] add implementation for the segment_iterator
class, as well as for the free functions segments_begin and segments_end
2014-09-24 08:49:19 +03:00
Menelaos Karavelas
6dea5fca84 [iterators][segment_iterator] add implementation for the underlying
segment_iterator type
2014-09-24 08:48:43 +03:00
Menelaos Karavelas
3739d79140 [iterators][segment_iterator] add implementation for an iterator over
the segments of a range
2014-09-24 08:48:09 +03:00
Menelaos Karavelas
e9aee61734 [iterators][segment_iterator] add basic dispatch definitions for the
segment_iterator and segment_iterator_type classes
2014-09-24 08:45:02 +03:00
Menelaos Karavelas
73ec339f7b [iterators][concatenate_iterator] add one more template parameter for
the reference type (previously it was defaulted to Value&)
2014-09-24 08:43:21 +03:00
Menelaos Karavelas
49af3c4c87 [iterators][flatten_iterator] add one more template parameter for the
reference type (previously it was defaulted to Value&)
2014-09-24 08:41:42 +03:00
Menelaos Karavelas
6c6c31d1b2 [iterators][point_iterator] add missing include for interior_type 2014-09-24 08:39:45 +03:00
Menelaos Karavelas
2756392b51 [test][point_iterator] fix/update includes 2014-09-24 08:38:43 +03:00
Patrick J. LoPresti
ff24c271a7 [core] Fix signed/unsigned comparison warnings 2014-09-22 14:13:14 -07:00
Adam Wulkiewicz
0f23d2317a [index] Fix signed/unsigned comparison in is_valid (MPL_ASSERT). 2014-09-22 00:30:08 +02:00
Barend Gehrels
8643a35da3 Merge branch 'develop' into feature/buffer 2014-09-17 16:33:32 +02:00
Barend Gehrels
c55e000eef [buffer] small changes in comments/test svg 2014-09-17 16:32:25 +02:00
Barend Gehrels
9298ac2a2c [buffer] fix intersection points on border, equal points should not be checked
and correct order in call to side strategy
This fixes case rt_u10
2014-09-17 16:30:03 +02:00