KD Tree Range Queries

Sylvain Bougerel sylvain.bougerel.devel at gmail.com
Fri Jul 22 14:48:51 UTC 2016


Hi Thierry,

What you are looking for is orthogonal range search. It is definitely
possible to do that with libkdtree. Please have a look at the
visit_within_range() function, which fits the use case you are looking for.

Regards
Sylvain

On Fri, 22 Jul 2016 06:50 Thierry Moreira, <thierrypin at gmail.com> wrote:

> Hello,
>
> I'm new to the library and I'm facing trouble with range queries. What I
> want to do is find all the points within a given rectangle. I know this as
> "range query". (link below)
>
> http://www.cise.ufl.edu/class/cot5520fa09/CG_RangeKDtrees.pdf (Kd-trees
> -> Querying in kd-trees)
>
>
> Apparently, the only type of searching in range available is having a
> point and finding all the nearest points, with a tolerance.
>
> Is it possible to do what I want with this library?
>
> Thank you,
>
> Thierry P. Moreira
> _______________________________________________
> libkdtree-devel mailing list
> libkdtree-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/libkdtree-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/libkdtree-devel/attachments/20160722/8959ce8b/attachment.html>


More information about the libkdtree-devel mailing list