Share via


ST_OVERLAPS (Azure Stream Analytics)

Gibt 1 zurück, wenn sich eine geografie mit einer anderen überschneidet. Wenn sich geografische Regionen nicht überschneiden oder sich in einer anderen befindet, wird 0 zurückgegeben.

Syntax

ST_OVERLAPS (polygonA, polygonB)  

Argument

Polygona

Das Polygon, das sich mit polygonB überlappen könnte.

PolygonB

Das Polygon, das sich mit polygonA überlappen könnte.

Rückgabetyp

Gibt 1 zurück, wenn sich ein Polygon mit einem anderen Polygon überlappt, andernfalls wird 0 zurückgegeben.

Beispiel

SELECT  
     ST_OVERLAPS(input.datacenterArea, input.stormArea)  
FROM input  
  

Eingabebeispiel

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] ]}

Ausgabebeispiel

0

1

Weitere Informationen