メインコンテンツまでスキップ
バージョン: 2.1

ST_DISJOINT

説明

ジオメトリshape1がジオメトリshape2と交差しないかどうかを判定します。

Note

Apache Doris 2.1.10以降でサポートされています。

構文

ST_DISJOINT( <shape1>, <shape2> )

パラメータ

パラメータ説明
<shape1>shape2と交差しないかどうかを判定するために渡されるジオメトリ
<shape2>shape1と交差しないかどうかを判定するために渡されるジオメトリ

戻り値

戻り値 1: shape1のグラフがshape2のグラフと交差しない

戻り値 0: shape1のグラフがshape2のグラフと交差する

SELECT ST_Disjoint(ST_Polygon("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"), ST_Point(5, 5));
+------------------------------------------------------------------------------------+
| ST_Disjoint(ST_Polygon("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"), ST_Point(5, 5)) |
+------------------------------------------------------------------------------------+
| 0 |
+------------------------------------------------------------------------------------+
SELECT ST_Disjoint(ST_Polygon("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"), ST_Point(50, 50));
+--------------------------------------------------------------------------------------+
| ST_Disjoint(ST_Polygon("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"), ST_Point(50, 50)) |
+--------------------------------------------------------------------------------------+
| 1 |
+--------------------------------------------------------------------------------------+