【问题标题】:Spatial search for neighbor with distance limit?空间搜索有距离限制的邻居?
【发布时间】:2017-01-31 09:03:28
【问题描述】:

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

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

【问题讨论】:

    标签: spatial spatial-index tarantool


    【解决方案1】:

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

    【讨论】:

    • 它是否也适用于点(零宽度和高度矩形)? IE。是否会返回搜索矩形中包含的所有点?
    • 你可以尝试使用 Tarantool GIS tarantool.github.io/gis
    猜你喜欢
    • 1970-01-01
    • 2012-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-19
    • 2017-06-25
    • 2019-06-05
    相关资源
    最近更新 更多