중요합니다
이 기능은 공개 미리보기 단계에 있습니다.
WKT 설명을 구문 분석하고 해당 Geography 값을 반환합니다.
해당 Databricks SQL 함수에 대해 알아보려면 st_geogfromtext 함수를 참조하세요.
문법
from pyspark.databricks.sql import functions as dbf
dbf.st_geogfromtext(col=<col>)
매개 변수
| 매개 변수 | 유형 | Description |
|---|---|---|
col |
pyspark.sql.Column 또는 str |
지리 값을 나타내는 WKT 형식의 문자열 값입니다. |
예시
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([('POLYGON((0 0,5 6,7 -8,0 0))',)], ['wkt'])
df.select(dbf.st_astext(dbf.st_geogfromtext('wkt')).alias('result')).collect()
[Row(result='POLYGON((0 0,5 6,7 -8,0 0))')]