Azure 搜索多面体
Azure Search Multipolygon
我知道 Azure 搜索支持 WKT 格式的简单多边形。它是否也支持 MULTI POLYGON。如果没有,我们什么时候可以使用此功能。
另外,多边形的顶点数是否有限制?
非常感谢
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 版本中改变。
我知道 Azure 搜索支持 WKT 格式的简单多边形。它是否也支持 MULTI POLYGON。如果没有,我们什么时候可以使用此功能。
另外,多边形的顶点数是否有限制?
非常感谢
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 版本中改变。