Azure搜索多字形

时间:2017-06-21 15:22:02

标签: azure-search

我知道Azure Search支持WKT格式的简单多边形。它是否也支持MULTI POLYGON。如果没有,我们何时可以预期此功能可用。

此外,多边形可以有多少顶点?

非常感谢

1 个答案:

答案 0 :(得分:0)

Azure搜索不支持多重多边形。要表示一个,您需要构建一个过滤器查询,使用多边形组合构造多面,例如,表示一个环:

filter=geo.intersects(location, geography'POLYGON((<coordinates of the external ring>))') and not geo.intersects(location, geography'POLYGON((<coordinates of the internal ring>))')

目前,我们不会对多边形可以拥有的顶点数量施加限制,但这可能会在未来的API版本中发生变化。