Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime 17.1 and above
Important
This feature is in Public Preview.
Note
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: AGEOGRAPHYorGEOMETRYvalue.
Returns
A value of type STRING.
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
-- 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_asbinaryfunctionst_asewkbfunctionst_asgeojsonfunctionst_astextfunctionst_aswkbfunctionst_aswktfunctionst_geogfromewktfunctionst_geogfromgeojsonfunctionst_geogfromtextfunctionst_geogfromwkbfunctionst_geogfromwktfunctionst_geomfromewkbfunctionst_geomfromewktfunctionst_geomfromgeojsonfunctionst_geomfromtextfunctionst_geomfromwkbfunctionst_geomfromwktfunctionto_geographyfunctionto_geometryfunctiontry_to_geographyfunctiontry_to_geometryfunction