✅ Azure Stream Analytics ✅ Fabric Eventstream
地理が別の地域内にある場合は 1 を返し、それ以外の場合は 0 を返します。
構文
ST_WITHIN (geography, polygon)
引数
地理学
多角形の内側にある可能性がある地理。 ポイントまたは多角形を指定できます。
多角形
geography を含むことができる多角形。
返り値の種類
ポイントまたはポリゴンが別のポリゴン内にある場合は 1 を返します。存在しない場合は 0 を返します。
例
SELECT
ST_WITHIN(input.deliveryDestination, input.warehouse)
FROM input
入力例
deliveryDestination | 倉庫 |
---|---|
{"type":"Point", "coordinates": [76.6, 10.1]} | {"type":"Polygon", "coordinates": [[ [0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0], [0.0, 0.0] ]} |
{"type":"Point", "coordinates": [15.0, 15.0]} | {"type":"Polygon", "coordinates": [[ [10.0, 10.0], [20.0, 10.0], [20.0, 20.0], [10.0, 20.0], [10.0, 10.0] ]} |
出力の例
0
1
こちらもご覧ください
- 地理空間関数
- CreateLineString
- CreatePoint の
- CreatePolygon
- ST_DISTANCE
- ST_OVERLAPS
- ST_INTERSECTS