[Boost-bugs] [Boost C++ Libraries] #6584: Point to linestring distance calculation

Subject: [Boost-bugs] [Boost C++ Libraries] #6584: Point to linestring distance calculation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-20 23:37:24


#6584: Point to linestring distance calculation
---------------------------------------+------------------------------------
 Reporter: aleksey.tulinov@… | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
---------------------------------------+------------------------------------
 distance() is using comparable distance for first segment and real
 distance to the rest of the segments of a linestring. If real distance is
 smaller than comp distance to first segment, then it is selected as min
 distance and distance to first segment is effectively ignored.

 I've attached patch and test application. In test application:

 Actual result:
 707107
 1e+06

 Expected result:
 707107
 707107
 Since point is closer to the first segment.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6584>
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:09 UTC