Boost C++ Libraries: Ticket #10983: box-box distance doesn't seem to work with spherical coordinate systems https://svn.boost.org/trac10/ticket/10983 <p> 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. </p> <p> 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. </p> <p> 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. </p> <p> See example below for problem. </p> <hr /> <pre class="wiki">#include &lt;boost/geometry/geometry.hpp&gt; typedef boost::geometry::model::point&lt;double,2,boost::geometry::cs::cartesian&gt; cartesian_point; typedef boost::geometry::model::point&lt;double,2,boost::geometry::cs::spherical_equatorial&lt;boost::geometry::degree&gt; &gt; spherical_point; int main() { // Works... boost::geometry::model::box&lt;cartesian_point&gt; c_box1, c_box2; boost::geometry::distance(c_box1,c_box2); // Doesn't work! boost::geometry::model::box&lt;spherical_point&gt; s_box1, s_box2; boost::geometry::distance(s_box1,s_box2); return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10983 Trac 1.4.3 anonymous Thu, 05 Feb 2015 19:56:46 GMT component changed; keywords, owner set https://svn.boost.org/trac10/ticket/10983#comment:1 https://svn.boost.org/trac10/ticket/10983#comment:1 <ul> <li><strong>keywords</strong> distance box spherical added </li> <li><strong>owner</strong> set to <span class="trac-author">Barend Gehrels</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">geometry</span> </li> </ul> Ticket mkaravel Mon, 11 May 2015 05:25:04 GMT owner, status, milestone changed; cc set https://svn.boost.org/trac10/ticket/10983#comment:2 https://svn.boost.org/trac10/ticket/10983#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">mkaravel</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">Barend Gehrels</span> to <span class="trac-author">mkaravel</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> <p> The box-box distance does not work yet on the spherical coordinate system. The matrix refers to all combinations of geometries in the Cartesian coordinate system. The way we report converage in the distance matrix should be changed to reflect the coordinate system(s) it refers to. The box-box distance should be available in boost 1.59. </p> Ticket