[relate] fix compile errors (use of old names)

This commit is contained in:
Adam Wulkiewicz
2014-03-23 17:54:52 +01:00
parent 5316d1f2ad
commit 3b91c7ed34
2 changed files with 4 additions and 3 deletions

View File

@@ -12,6 +12,7 @@
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_RELATE_BOUNDARY_CHECKER_HPP
#include <boost/geometry/util/range.hpp>
#include <boost/geometry/algorithms/detail/sub_range.hpp>
#include <boost/geometry/algorithms/detail/disjoint/point_point.hpp>
@@ -113,14 +114,14 @@ public:
if ( BoundaryQuery == boundary_back )
{
if ( sid.segment_index + 2 != geometry::num_points(sub_geometry::get(geometry, sid)) )
if ( sid.segment_index + 2 != geometry::num_points(sub_range(geometry, sid)) )
return false;
}
if ( BoundaryQuery == boundary_any )
{
if ( sid.segment_index != 0
&& sid.segment_index + 2 != geometry::num_points(sub_geometry::get(geometry, sid)) )
&& sid.segment_index + 2 != geometry::num_points(sub_range(geometry, sid)) )
return false;
}

View File

@@ -110,7 +110,7 @@ struct get_turns
reverse1,
reverse2,
GetTurnPolicy
>::apply(0, geometry1, 1, geometry2, bg::detail::no_rescale_policy(), turns, interrupt_policy);
>::apply(0, geometry1, 1, geometry2, detail::no_rescale_policy(), turns, interrupt_policy);
}
};