Spatial search for neighbor with distance limit?
Asked Answered
S

1

1

In the example page it is shown how to do a neighbor search with a limit on the number of returned items. Is it possible to also specify a distance limit? I.e.:

Return all items that are at most X distance from the point, and further limit the result to Y number of items."

Sarawak answered 22/9, 2016 at 17:2 Comment(0)
H
2

No, if you need distance, use OVERLAPS. https://tarantool.org/doc/book/box/box_index.html#rtree-iterator

Haldes answered 23/9, 2016 at 7:51 Comment(2)
Does it also work with points(zero width and height rectangle)? I.e. will all points contained in the search rectangle be returned?Sarawak
You can try to use Tarantool GIS for that tarantool.github.io/gisRammer

© 2022 - 2024 — McMap. All rights reserved.