-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
findNearestOption does not find point within a distance in particular situations #292
Comments
@jaceksokol Hi, Jacek! Thanks for trying the library! |
Thank you, Andriy, for such a quick reaction 🙇 |
@jaceksokol You are welcome! |
Andriy, first of all, I really admire the work you've done on this library. The performance is amazing.
I found one issue which is related to the algorithm of searching nearest points.
I have a tree constructed with
nodeCapacity = 4
, distance calculator isSphericalEarth
. The tree is represented as below:When searching for the nearest point to
-24.65527, 25.91904
with themaxDist
parameter set to 50 km, I am expecting the tree to returnSome(RTreeEntry(-24.65451,25.90859,-24.65451,25.90859,BWGBE))
. However, the method returnsNone
. If ImaxDist
is set to infinity all works fine.I did some investigation and the situation can be represented graphically like below:


A
is the point that I'm looking for the nearest objects, andB
is the expected closest object.The text was updated successfully, but these errors were encountered: