Condividi tramite


Funzione st_m

Si applica a:check contrassegnato come sì controllo SQL di Databricks contrassegnato come sì Databricks Runtime 17.1 e versioni successive

Important

Questa funzionalità è in Anteprima Pubblica.

Annotazioni

Questa funzionalità non è disponibile in Databricks SQL Classic Warehouses. Per altre informazioni sui databricks SQL Warehouse, vedere Tipi di SQL Warehouse.

Restituisce la coordinata M del valore del punto GEOMETRY di input oppure NULL se il punto è vuoto o non ha una coordinata M.

Syntax

st_m ( geoExpr )

Arguments

  • geoExpr: un valore GEOMETRY.

Returns

Valore di tipo DOUBLE, punto di input di coordinata M GEOMETRY.

La funzione restituisce NULL se l'input è NULL o se il punto è vuoto.

Condizioni di errore

Examples

-- Returns the M coordinate of a non-empty point geometry with an M coordinate.
> SELECT st_m(st_geomfromtext('POINT M (2 3 4)'));
  4.0
-- Returns the M coordinate of a non-empty point geometry without an M coordinate.
> SELECT st_m(st_geomfromtext('POINT Z (1 2 3)'));
  NULL
-- Returns `NULL` for an empty point geometry.
> SELECT st_m(st_geomfromtext('POINT ZM EMPTY'));
  NULL