[geometry] fixed errors in overlay/follow.hpp related to proper usage of Linestring concept.

[SVN r86333]
This commit is contained in:
Adam Wulkiewicz
2013-10-16 15:36:32 +00:00
parent 90dd0bf7d5
commit f07f5fe6cf

View File

@@ -61,7 +61,7 @@ static inline bool last_covered_by(Turn const& turn, Operation const& op,
<
point_type,
0, dimension<point_type>::value
>::apply(point_in_between, linestring[op.seg_id.segment_index], turn.point);
>::apply(point_in_between, *(::boost::begin(linestring) + op.seg_id.segment_index), turn.point);
return geometry::covered_by(point_in_between, polygon);
}
@@ -182,11 +182,13 @@ struct action_selector<overlay_intersection>
// and add the output piece
geometry::copy_segments<false>(linestring, segment_id, index, current_piece);
detail::overlay::append_no_duplicates(current_piece, point);
if (current_piece.size() > 1)
if (::boost::size(current_piece) > 1)
{
*out++ = current_piece;
}
current_piece.clear();
//traits::clear<LineStringOut>::apply(current_piece);
geometry::clear(current_piece);
}
static inline bool is_entered(bool entered)