在空间上搜索具有距离限制的邻居? [英] Spatial search for neighbor with distance limit?

查看:94
本文介绍了在空间上搜索具有距离限制的邻居?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例页面中它显示了如何在返回的项目数受到限制的情况下进行邻居搜索.是否可以指定距离限制?即:

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

返回距离该点最多X距离的所有项目,并将结果进一步限制为Y个项目."

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

推荐答案

否,如果您需要距离,请使用OVERLAPS. https://tarantool.org/doc/book/box/box_box.index.html #rtree-iterator

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

这篇关于在空间上搜索具有距离限制的邻居?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆