Spatial search for neighbor with distance limit?

自闭症网瘾萝莉.ら 提交于 2019-12-11 05:31:05

问题


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."


回答1:


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



来源:https://stackoverflow.com/questions/39644902/spatial-search-for-neighbor-with-distance-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!