✅ Azure 流分析 ✅ 构造事件流
如果地理区域与另一个地理区域重叠,则返回 1。 如果地理区域不重叠或一个位于另一个区域,它将返回 0。
语法
ST_OVERLAPS (polygonA, polygonB)
论点
PolygonA
可与多边形B 重叠的多边形。
PolygonB
可与多边形A 重叠的多边形。
返回类型
如果多边形与另一个多边形重叠,则返回 1,否则返回 0。
示例:
SELECT
ST_OVERLAPS(input.datacenterArea, input.stormArea)
FROM input
输入示例
| datacenterArea | stormArea |
|---|---|
| {“type”:“Polygon”, “coordinates”: [ [0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0], [0.0, 0.0] ]} | {“type”:“Polygon”, “coordinates”: [ [30.0, 30.0], [40.0, 30.0], [40.0, 40.0], [30.0, 40.0], [30.0, 30.0] ]} |
| {“type”:“Polygon”, “coordinates”: [ [0.0, 0.0], [20.0, 0.0], [20.0, 20.0], [0.0, 20.0], [0.0, 0.0] ]} | {“type”:“Polygon”, “coordinates”: [ [10.0, 10.0], [40.0, 10.0], [40.0, 40.0], [40.0, 20.0], [40.0, 40.0] ]} |
输出示例
0
1