mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-10 23:42:12 +00:00
Aligned multi/simplify to latest change.
[SVN r80130]
This commit is contained in:
@@ -31,9 +31,10 @@ namespace boost { namespace geometry
|
||||
namespace detail { namespace simplify
|
||||
{
|
||||
|
||||
template<typename MultiGeometry, typename Strategy, typename Policy>
|
||||
template<typename Policy>
|
||||
struct simplify_multi
|
||||
{
|
||||
template <typename MultiGeometry, typename Strategy>
|
||||
static inline void apply(MultiGeometry const& multi, MultiGeometry& out,
|
||||
double max_distance, Strategy const& strategy)
|
||||
{
|
||||
@@ -63,47 +64,21 @@ struct simplify_multi
|
||||
namespace dispatch
|
||||
{
|
||||
|
||||
template <typename MultiPoint, typename Strategy>
|
||||
struct simplify<multi_point_tag, MultiPoint, Strategy>
|
||||
template <typename MultiPoint>
|
||||
struct simplify<MultiPoint, multi_point_tag>
|
||||
: detail::simplify::simplify_copy
|
||||
<
|
||||
MultiPoint,
|
||||
Strategy
|
||||
>
|
||||
|
||||
{};
|
||||
|
||||
|
||||
template <typename MultiLinestring, typename Strategy>
|
||||
struct simplify<multi_linestring_tag, MultiLinestring, Strategy>
|
||||
: detail::simplify::simplify_multi
|
||||
<
|
||||
MultiLinestring,
|
||||
Strategy,
|
||||
detail::simplify::simplify_range
|
||||
<
|
||||
typename boost::range_value<MultiLinestring>::type,
|
||||
Strategy,
|
||||
2
|
||||
>
|
||||
>
|
||||
|
||||
template <typename MultiLinestring>
|
||||
struct simplify<MultiLinestring, multi_linestring_tag>
|
||||
: detail::simplify::simplify_multi<detail::simplify::simplify_range<2> >
|
||||
{};
|
||||
|
||||
|
||||
template <typename MultiPolygon, typename Strategy>
|
||||
struct simplify<multi_polygon_tag, MultiPolygon, Strategy>
|
||||
: detail::simplify::simplify_multi
|
||||
<
|
||||
MultiPolygon,
|
||||
Strategy,
|
||||
detail::simplify::simplify_polygon
|
||||
<
|
||||
typename boost::range_value<MultiPolygon>::type,
|
||||
Strategy
|
||||
>
|
||||
>
|
||||
|
||||
template <typename MultiPolygon>
|
||||
struct simplify<MultiPolygon, multi_polygon_tag>
|
||||
: detail::simplify::simplify_multi<detail::simplify::simplify_polygon>
|
||||
{};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user