2014-07-29 3:07 GMT+02:00 Jeremy Murphy
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:
/usr/include/boost/geometry/algorithms/detail/overlay/get_turn_info.hpp:932:32: error: no matching function for call to ‘boost::geometry::model::referring_segment
::referring_segment(const boost::geometry::model::point &, const boost::geometry::model::point &)’ This constructor for referring_segment looks OK to me, except maybe for the 'const' qualifier on the arguments?
Which version of Boost are you using?
Indeed nearest(segment, ...) shouldn't work in 1.55.
However intersects(ring_or_poly) should. Could you prepare some minimal
failing example?
E.g. this compiles for me, using develop branch (upcomming 1.56) or 1.55
without one, marked line:
#include