Boost logo

Geometry :

Subject: Re: [geometry] ring, multi_polygon concepts too limited or not
From: Barend Gehrels (barend_at_[hidden])
Date: 2013-09-03 17:39:28


Hi Renaud,

On 3-9-2013 23:00, lepere renaud wrote:
> >
> > The issues you reported are fixed in the SVN Trunk. Are you using
> Trunk?
> > Could you verify if your intersection is working for your
> > Ring/MultiPolygon?
> >
> > Thanks, Barend
> >
> Hi,
>
> No sorry there is new problem, but it is better
> 1. in append_no_dups_or_spikes.hpp with the range.erase(it) method.
> Perhaps the erase method could be simulated by creating a new range
> copy but this could be inefficient if erase at the end...

Ah yes, thought about that earlier. It is recently introduced. It is
always the one-but-last point, I will save the last point, resize the
range and push the last point back again. Tomorrow.

>
> 2. While boost::geometry::concept::check< Geom::MultiPolygon >(); is
> ok ; i add forgot to specialize push_back, clear & resize and this
> leads to errors in code like:
> MultiPolygon mp;
> boost::geometry::read_wkt(s, mp);
> after adding those methods it is ok. concept::check< MultiPolygon > is
> probably not strong enough.
>

Good point, indeed. Will be fixed too.

Regards, Barend


Geometry list run by mateusz at loskot.net