ST_Is3D takes a geometry column and returns a boolean column. The function returns True
if the geometry is three-dimensional;
otherwise, it returns False
. The geometry is considered three-dimensional if it has x,y,z coordinates.
Function | Syntax |
---|---|
Python | is |
SQL | ST |
Scala | is3 |
For more details, go to the GeoAnalytics for Microsoft Fabric API reference for is_3d.
This function implements the OpenGIS Simple Features Implementation Specification for SQL 1.2.1
Examples
from geoanalytics_fabric.sql import functions as ST, Point
data = [
(Point(10,12,4), ),
(Point(10,12), )
]
df = spark.createDataFrame(data, ["point"])
df.select(ST.is_3d("point").alias("is_3d")).show()
Result
+-----+
|is_3d|
+-----+
| true|
|false|
+-----+
Version table
Release | Notes |
---|---|
1.0.0-beta | Python, SQL, and Scala functions introduced |