Re: [Boost-bugs] [Boost C++ Libraries] #11982: distance between point and linestring on spherical_equatorial ignores radius when using haversine.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11982: distance between point and linestring on spherical_equatorial ignores radius when using haversine.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-12 22:12:25


#11982: distance between point and linestring on spherical_equatorial ignores
radius when using haversine.
-------------------------------+---------------------------
  Reporter: anonymous | Owner: barendgehrels
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: geometry
   Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by awulkiew):

 That's because `distance()` for Point-Linestring requires Point/Segment
 strategy, not Point/Point strategy. If you passed:

 {{{
     bg::strategy::distance::cross_track<>(earthRadius)
 }}}

 the result would be correct.

 We have a few options:
 1. As you suggest somehow pass radius from input strategy into the
 Point/Segment strategy created in `backward_compatibility.hpp`. This may
 be problematic currently.
 2. Remove backward compatibility since it allows to use strategies
 incorrectly.
 3. Something else?

 Barend do you have a preference?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11982#comment:1>
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:19 UTC