Ticket #6584: distance.patch

File distance.patch, 574 bytes (added by aleksey.tulinov@…, 11 years ago)

Patch for point-to-linestring calculation

  • algorithms/distance.hpp

     
    130130        // check if other segments are closer
    131131        for (++prev, ++it; it != boost::end(view); ++prev, ++it)
    132132        {
    133             return_type const ds = ps_strategy.apply(point, *prev, *it);
     133            return_type const ds = eps_strategy.apply(point, *prev, *it);
    134134            if (geometry::math::equals(ds, zero))
    135135            {
    136136                return ds;