|
Geometry : |
Subject: Re: [geometry] [Spatial Index] bug & question
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2013-06-16 18:43:06
Adam Wulkiewicz wrote:
>
> Unfortunately it doesn't compile, but I'll add those operations today
> (for cartesian cs).
>
Ok, please check if it works for you. You should be able to do e.g.
something like this:
bgi::rtree<MyCircle, ..., MyIndexable> rt;
or
bgi::rtree<std::pair<MyPoint, size_t>, ...> rt; // center and index
and then either adapt your circle to the NSphere concept or use
model::nsphere:
typedef bg::model::point<T, 2, bg::cs::cartesian> point;
typedef nsphere<point, T> nsphere;
nsphere s(point(x, y), some_query_radius + circles_radius);
rt.query(bgi::intersects(s), std::back_inserter(...));
Regards,
Adam
Geometry list run by mateusz at loskot.net