Freigeben über


ST_OVERLAPS

✅ Azure Stream Analytics ✅ Fabric Eventstream

Gibt 1 zurück, wenn sich eine Geografie mit einer anderen überlappt. Wenn sich Regionen nicht überlappen oder sich in einem anderen befindet, wird 0 zurückgegeben.

Syntax

ST_OVERLAPS (polygonA, polygonB)  

Streitpunkt

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 ein Polygon mit einem anderen Polygon überlappt, wenn nicht, 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, 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, 40.0] ]}

Ausgabebeispiel

0

1

Siehe auch