Ticket #6584 (closed Bugs: fixed)
Point to linestring distance calculation
|Reported by:||aleksey.tulinov@…||Owned by:||barendgehrels|
|Version:||Boost Development Trunk||Severity:||Problem|
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.