Re: [Boost-bugs] [Boost C++ Libraries] #10713: Boost Geometry dissolve

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10713: Boost Geometry dissolve
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-20 19:24:43


#10713: Boost Geometry dissolve
-------------------------------+---------------------------
  Reporter: jdh@… | Owner: barendgehrels
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: geometry
   Version: Boost 1.57.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+---------------------------

Comment (by anonymous):

 Hi Again,

 Thanks a lot for the fix.

 Maybe it is me but I thought that the changes should also be applied to
 the Dissolve function?

 Something like:

 template
 <
  typename Geometry,
  typename Collection
>
 inline void dissolve(Geometry const& geometry, Collection&
 output_collection)
 {
  concept::check<Geometry const>();
  typedef typename boost::range_value<Collection>::type geometry_out;

  concept::check<geometry_out>();

  typedef typename geometry::point_type<Geometry>::type point_type;
  typedef typename geometry::rescale_policy_type<point_type>::type
 rescale_policy_type;

  rescale_policy_type robust_policy =
 geometry::get_rescale_policy<rescale_policy_type>(geometry);

  dispatch::dissolve
  <
   typename tag<Geometry>::type,
   typename tag<geometry_out>::type,
   Geometry,
   geometry_out
>::apply(geometry, robust_policy, std::back_inserter(output_collection));
 }

 Best regards

 Johan

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10713#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC