ST_XMAX (Lakehouse v1)
Gibt den maximalen Längengrad (X-Koordinate) aller im angegebenen GEOMETRY-Objekt enthaltenen Punkte zurück.
SQL-Syntax
Abschnitt betitelt „SQL-Syntax“ST_XMAX(<geometry>)Argumente
Abschnitt betitelt „Argumente“| Argumente | Beschreibung |
|---|---|
<geometry> |
Das Argument muss ein Ausdruck vom Typ GEOMETRY sein. |
Rückgabetyp
Abschnitt betitelt „Rückgabetyp“Double.
SQL-Beispiele
Abschnitt betitelt „SQL-Beispiele“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 │└───────────────┘