ST_OVERLAPS(Azure Stream Analytics)

지리가 다른 지리와 겹치면 1을 반환합니다. 지리적 위치가 겹치지 않거나 다른 지역 내에 있으면 0이 반환됩니다.

구문

ST_OVERLAPS (polygonA, polygonB)  

인수

다각형

polygonB와 겹칠 수 있는 다각형입니다.

PolygonB

polygonA와 겹칠 수 있는 다각형입니다.

반환 형식

다각형이 다른 다각형과 겹치면 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

참고 항목