メインコンテンツまでスキップ

st_geogfromewkt function

Applies to: check marked yes Databricks Runtime 18.0 and above

Preview

This feature is in Public Preview.

注記

This feature is not available on Databricks SQL Classic warehouses. To learn more about Databricks SQL warehouses, see SQL warehouse types.

Parses an Extended Well-Known Text (EWKT) description of a geometry and returns the corresponding GEOGRAPHY value. Only SRID 4326 is supported.

Syntax

st_geogfromewkt ( ewktExpr )

Arguments

Returns

GEOGRAPHY(ANY) value representing the parsed Extended WKT (EWKT) geometry. The SRID of the returned GEOGRAPHY value is 4326.

The function returns NULL if any of the inputs is NULL.

Error conditions

Examples

SQL
-- Simple example where the input geography is provided in EWKT format.
> SELECT concat_ws(';', st_srid(g)::STRING, st_astext(g)) FROM (SELECT st_geogfromewkt('SRID=4326;POINT Z (1 2 3)') AS g);
4326;POINT Z (1 2 3)