st_asewkt
function
Applies to: Databricks SQL
Databricks Runtime 17.1 and above
Preview
This feature is in Public Preview.
nota
This feature is not available on Databricks SQL Classic warehouses. To learn more about Databricks SQL warehouses, see SQL warehouse types
Returns the input GEOGRAPHY
or GEOMETRY
value in Extended WKT (EWKT) format.
Syntax
st_asbinary ( geoExpr )
Arguments
geoExpr
: AGEOGRAPHY
orGEOMETRY
value.
Returns
A value of type STYRING
.
The returned value is the Extended WKT (EWKT) description of the input GEOGRAPHY
or GEOMETRY
value.
The function returns NULL
if the input is NULL
.
Examples
SQL
-- Export a 3DZ Cartesian point, given in GeoJSON format, in EWKT format.
> SELECT st_asewkt(st_geomfromgeojson('{"type":"Point","coordinates":[2.718281828,3.141592653,100]}'));
SRID=4326;POINT Z (2.718281828 3.141592653 100)
Related functions
st_asbinary
functionst_asewkb
functionst_asgeojson
functionst_astext
functionst_aswkb
functionst_aswkt
functionst_geogfromgeojson
functionst_geogfromtext
functionst_geogfromwkb
functionst_geogfromwkt
functionst_geomfromewkb
functionst_geomfromgeojson
functionst_geomfromtext
functionst_geomfromwkb
functionst_geomfromwkt
functionto_geography
functionto_geometry
functiontry_to_geography
functiontry_to_geometry
function