ST_CONTAINS (Lakehouse v2)
Vérifie si une géométrie en contient une autre. Renvoie 1 si c’est le cas.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.st_contains(<geometry1>, <geometry2>)Exemples Analyze
Section intitulée « Exemples Analyze »func.st_contains(get_column(table, 'area'), func.st_point(1, 1))
┌───┐│ 1 │└───┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_CONTAINS(<geometry1>, <geometry2>)Exemples SQL
Section intitulée « Exemples SQL »SELECT ST_CONTAINS(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0))'), ST_POINT(5, 5));
┌───┐│ 1 │└───┘