适用于: Databricks Runtime 17.1 及更高版本
重要
此功能目前以公共预览版提供。
以扩展 WKT (EWKT) 格式返回输入 GEOGRAPHY
或 GEOMETRY
值。
语法
st_asbinary ( geoExpr )
论据
-
geoExpr
:GEOGRAPHY
或GEOMETRY
值。
退货
一个 STYRING
类型的值。
返回的值是输入 GEOGRAPHY
或 GEOMETRY
值的扩展 WKT (EWKT) 描述。
如果输入为 NULL
.,则函数返回 NULL
。
例子
-- 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)
相关函数
-
st_asbinary
函数 -
st_asewkb
函数 -
st_asgeojson
函数 -
st_astext
函数 -
st_aswkb
函数 -
st_aswkt
函数 -
st_geogfromgeojson
函数 -
st_geogfromtext
函数 -
st_geogfromwkb
函数 -
st_geogfromwkt
函数 -
st_geomfromewkb
函数 -
st_geomfromgeojson
函数 -
st_geomfromtext
函数 -
st_geomfromwkb
函数 -
st_geomfromwkt
函数 -
to_geography
函数 -
to_geometry
函数 -
try_to_geography
函数 -
try_to_geometry
函数