הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Important
This feature is in Public Preview.
Returns the coordinate dimension of the input Geography or Geometry value.
For the corresponding Databricks SQL function, see st_ndims function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.st_ndims(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
A Geography or Geometry value. |
Examples
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([('POINT ZM (10 34 48 -24)',)], ['wkt'])
df.select(dbf.st_ndims(dbf.st_geomfromtext('wkt')).alias('result')).collect()
[Row(result=4)]