Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12725: boost::geometry::distance compile errors with 3D segment primitives
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-16 08:02:36
#12725: boost::geometry::distance compile errors with 3D segment primitives
-------------------------------------+-------------------------------------
Reporter: Arturo Blas | Owner: barendgehrels
<arturoblas@â¦> | Status: new
Type: Feature Requests | Component: geometry
Milestone: To Be Determined | Severity: Showstopper
Version: Boost 1.60.0 | Keywords: rtree, geometry,
Resolution: | distance
-------------------------------------+-------------------------------------
Comment (by awulkiew):
I'd discourage you from hooking in your own functions in case something
changed in the future internally in the rtree (e.g. different functions
were used). But if you'd like to try it you could overload
`bg::comparable_distance(segment, segment)` and
`bg::comparable_distance(segment, box)`, e.g. like that:
{{{
namespace boost { namespace geometry {
template <typename Box>
float comparable_distance(segment const& s, Box const& b) { return 0;
}
float comparable_distance(segment const& s1, segment const& s2) {
return 0; }
}}
}}}
Box would be of type internally used in the R-tree to represent nodes, so
`bg::model::box<...>`.
No ETA, currently we're adding support for 2d geographic CS. But you could
consider contributing your own implementation. :)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12725#comment:5> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC