ST_DISTANCE (Lakehouse v1)
Renvoie la distance euclidienne minimale entre deux objets GEOMETRY.
Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_DISTANCE(<geometry1>, <geometry2>)Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<geometry1> |
L’argument doit être une expression de type GEOMETRY et doit contenir un Point. |
<geometry2> |
L’argument doit être une expression de type GEOMETRY et doit contenir un Point. |
Type de retour
Section intitulée « Type de retour »Double.
Exemples SQL
Section intitulée « Exemples SQL »SELECT ST_DISTANCE( TO_GEOMETRY('POINT(0 0)'), TO_GEOMETRY('POINT(1 1)') ) AS distance
┌─────────────┐│ distance │├─────────────┤│ 1.414213562 │└─────────────┘