st_zmin Funktion

Gilt für:Angekreuzt mit Ja Databricks SQL angekreuzt ja Databricks Runtime 17.1 und höher Angekreuzt ja Lakehouse//RT

Hinweis

Dieses Feature ist in Databricks SQL Classic Warehouses nicht verfügbar. Weitere Informationen zu Databricks SQL Warehouses finden Sie unter SQL Warehouse-Typen.

Gibt die minimale Z-Koordinate des Eingabewerts GEOMETRY zurück, oder NULL wenn die Geometrie leer ist oder keine Z-Koordinate aufweist.

Syntax

st_zmin ( geoExpr )

Arguments

  • geoExpr: Ein Wert GEOMETRY .

Returns

Ein Wert vom Typ DOUBLE, gleich der minimalen Z-Koordinate des Eingabewerts GEOMETRY .

Die Funktion gibt zurück NULL , wenn die Eingabe leer ist oder die Geometrie leer ist NULL oder keine Z-Koordinate aufweist.

Examples

-- Returns the minimum Z coordinate of a non-empty geometry with a Z coordinate.
> SELECT st_zmin(st_geomfromtext('LINESTRING Z (10 34 -1,44 57 -2,30 24 -5)'));
  -5.0
-- Returns `NULL` for a non-empty geometry without a Z coordinate.
> SELECT st_zmin(st_geomfromtext('LINESTRING(10 34,44 57,30 24)'));
  NULL