Open daedric opened 6 years ago
The bug seems to be caused by some fallback on the strategy::distance::cross_track to which the Haversine strategy is not given so it is instantiated with the default radius of 1.
First of all, when computing the distance between point and polygon the correct strategy to use is strategy::distance::cross_track and not strategy::distance::haversine. Then you will get the desired result.
On the other hand the fallback call that you mention is indeed buggy since it neglects the radius of the passed haversine strategy.
Hello, I might have found an issue in the point to polygon distance calculation.
Given this code:
The output with boost 1.67 is:
As one can see, the distance returned does not seem to be multiplied by the given radius.
~This leads to another question, it is not clear in the documentation that the distance between a point and a polygon is the distance between the point and the closest point of the polygon.~
Cheers :)