Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Funzione
Si applica a:
controllo SQL di Databricks
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 l'input GEOGRAPHY o GEOMETRY in formato WKT.
Syntax
st_astext ( geoExpr )
Arguments
-
geoExpr: un valoreGEOGRAPHYoGEOMETRY.
Returns
Valore di tipo STRING.
Il valore restituito è la descrizione WKT del valore dell'input GEOGRAPHY o GEOMETRY.
La funzione restituisce NULL se l'input è NULL.
Examples
-- Export a 3DZ Cartesian point, given in GeoJSON format, in WKT format.
> SELECT st_astext(to_geometry('{"type":"Point","coordinates":[2.718281828,3.141592653,100]}'));
POINT Z (2.718281828 3.141592653 100)
-- Export a 3DZ geographic point, given in GeoJSON format, in WKT format.
> SELECT st_astext(to_geography('{"type":"Point","coordinates":[2.718281828,3.141592653,100]}'));
POINT Z (2.718281828 3.141592653 100)
Funzioni correlate
-
st_asbinaryFunzione -
st_asewkbFunzione -
st_asewktFunzione -
st_asgeojsonFunzione -
st_aswkbFunzione -
st_aswktFunzione -
st_geogfromgeojsonFunzione -
st_geogfromtextFunzione -
st_geogfromwkbFunzione -
st_geogfromwktFunzione -
st_geomfromewkbFunzione -
st_geomfromgeojsonFunzione -
st_geomfromtextFunzione -
st_geomfromwkbFunzione -
st_geomfromwktFunzione -
to_geographyFunzione -
to_geometryFunzione -
try_to_geographyFunzione -
try_to_geometryFunzione