Boost logo

Boost :

Subject: Re: [boost] [geometry] Querying for Points nearest to a Segment.
From: Jeremy Murphy (jeremy.william.murphy_at_[hidden])
Date: 2014-07-29 22:30:59


On 29/07/2014 11:46 AM, "Adam Wulkiewicz" <adam.wulkiewicz_at_[hidden]> wrote:

> 2014-07-29 3:07 GMT+02:00 Jeremy Murphy <jeremy.william.murphy_at_[hidden]>:
>
> > Veering slightly off topic but still related to Geometry development,
> I've
> > hit some hurdles with the rtree index. I could create an index of points
> > easily but then couldn't query for the nearest neighbour of a segment.
> (I
> > assume this is simply not supported at present; is it forthcoming?) So I
> > created a ring or polygon from the segment and tried to query for the
> > points that it covers/intersects, which is a feature listed in the
> > documentation, but I've hit this compilation error:
> >
>
> Which version of Boost are you using?
>

1.55.

 Ahh, I had an almost identical test program except for one line. I had:

    typedef boost::geometry::model::d2::point_xy<double> Point;

Is that type meant to have different behaviour to the general point model?

Thanks for your help, cheers.

Jeremy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk