id summary reporter owner description type status milestone component version severity resolution keywords cc
10983 box-box distance doesn't seem to work with spherical coordinate systems mdrinto@… mkaravel "The ""geometry distance matrix"" indicates that all geometry-to-geometry distances have been implemented in 1.57. But the box-to-box distance doesn't seem to work with spherical geometries, at least with gcc 4.4.7.
One of the errors seems to be a ""not yet implemented"" error, so perhaps it hasn't been done yet. It does have some tricky business that a cartesian box wouldn't have, but it's a straightforward exercise in trying different cases.
I'm certainly delighted with boost::geometry's functionality as is, but it would be great if this worked. And many apologies if the mistake is mine.
See example below for problem.
----
{{{
#include
typedef boost::geometry::model::point cartesian_point;
typedef boost::geometry::model::point > spherical_point;
int main()
{
// Works...
boost::geometry::model::box c_box1, c_box2;
boost::geometry::distance(c_box1,c_box2);
// Doesn't work!
boost::geometry::model::box s_box1, s_box2;
boost::geometry::distance(s_box1,s_box2);
return 0;
}
}}}
" Bugs assigned Boost 1.59.0 geometry Boost 1.57.0 Problem distance box spherical mkaravel