Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Important
This feature is in Public Preview. You can confirm preview enrollment on the Previews page. See Manage Azure Databricks previews.
Returns True if the input geometry is a valid geometry in the OGC sense.
For the corresponding Databricks SQL function, see st_isvalid function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.st_isvalid(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
A Geometry value. |
Examples
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([('POLYGON((0 0,10 0,0 10,0 0))',)], ['wkt'])
df.select(dbf.st_isvalid(dbf.st_geomfromtext('wkt')).alias('result')).collect()
[Row(result=True)]