-
Notifications
You must be signed in to change notification settings - Fork 211
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
What if i want to do the K-NN request without getting result in a time? #52
Comments
What determines when k is enough for you? |
Thank you very much for reply. |
Interesting question. Essentially you want to be able to search with a custom geometry which is a donut. In the README there are a list of conditions that need to be met for an RTree to be an applicable data structure for a custom geometry. They are:
The trouble is for a donut the second condition does not always hold. Imagine a donut inside a rectangle r1 and another rectangle r2 inside the hole of the donut. The distance from the donut to r1 is 0 yet the distance from the donut to r2 is > 0. Given this limitation I think you will need to do a search of r+lambda and remove the results of a search of r. |
I think i understand what you mean. I will try what you said. Thank you for answering my queations. Thank you a lot! |
Thank you for your help, and I find the algorithm i want to use, which is given in this paper. Distance Browsing in Spatial Databases Maybe it can help you for your R-tree related project. |
Cool. I'll have a look. On 19 June 2016 at 16:28, Henryypc [email protected] wrote:
|
That paper is great. I'll put that on my backlog to consider integrating with this project. Thanks for the info! |
That's cool! |
Hello, davidmoten
Thanks for reading my questions.
I want to do the K-NN query to a MBR but i don't know how much will k be. I want to get the result set incrementally. For example.It's a while loop. In each round, i want to get 5 more K-NN MBRs. What can i do to reach this goal in your code?
Looking forward to your reply.
Thanks very much!
BTW, your code really helped me a lot! Thank you very much!
The text was updated successfully, but these errors were encountered: