ST_CONTAINS (Lakehouse v2)
あるジオメトリが別のジオメトリを含むかどうかをチェックします。含む場合は1を返します。
Analyzeの構文
Section titled “Analyzeの構文”func.st_contains(<geometry1>, <geometry2>)Analyzeの例
Section titled “Analyzeの例”func.st_contains(get_column(table, 'area'), func.st_point(1, 1))
┌───┐│ 1 │└───┘SQLの構文
Section titled “SQLの構文”ST_CONTAINS(<geometry1>, <geometry2>)SELECT ST_CONTAINS(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0))'), ST_POINT(5, 5));
┌───┐│ 1 │└───┘