DocumentDb:多边形交点?

DocumentDb: Polygon intersection?

据我所知,在 DocumentDb 中无法有效地确定多边形和圆是否相交。事实上,这甚至可以用两个多边形来完成吗?

目前 - DocumentDB 的地理空间查询支持不支持查找两个多边形之间的交集。

它确实支持查询多边形内的点。示例查询如下所示:

-- Find all volcanoes within the state boundary 
-- of Washington (represented as a polygon)
SELECT * 
FROM volcanoes v 
WHERE ST_WITHIN(v.Location, 
{ "type": "Polygon",  "coordinates": [[
    [-124.63, 48.36], [-123.87, 46.14], 
    [-122.23, 45.54], [-119.17, 45.95],
    [-116.92, 45.96], [-116.99, 49.00], 
    [-123.05, 49.02], [-123.15, 48.31],
    [-124.63, 48.36]]]}
)