ST_XMAX (Lakehouse v1)
Renvoie la longitude maximale (coordonnée X) de tous les points contenus dans l’objet GEOMETRY indiqué.
Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_XMAX(<geometry>)Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<geometry> |
L’argument doit être une expression de type GEOMETRY. |
Type de retour
Section intitulée « Type de retour »Double.
Exemples SQL
Section intitulée « Exemples SQL »SELECT ST_XMAX( TO_GEOMETRY( 'GEOMETRYCOLLECTION(POINT(40 10),LINESTRING(10 10,20 20,10 40),POINT EMPTY)' ) ) AS pipeline_xmax;
┌───────────────┐│ pipeline_xmax │├───────────────┤│ 40 │└───────────────┘
SELECT ST_XMAX( TO_GEOMETRY( 'GEOMETRYCOLLECTION(POINT(40 10),LINESTRING(10 10,20 20,10 40),POLYGON((40 40,20 45,45 30,40 40)))' ) ) AS pipeline_xmax;
┌───────────────┐│ pipeline_xmax │├───────────────┤│ 45 │└───────────────┘