ST_IsMeasured takes a geometry column and returns a boolean column. The output returns True
if the geometry has an
m-value; otherwise, it returns False
.
Function | Syntax |
---|---|
Python | is |
SQL | ST |
Scala | is |
For more details, go to the GeoAnalytics for Microsoft Fabric API reference for is_measured.
Examples
from geoanalytics_fabric.sql import functions as ST
data = [
('{"x": -0.126,"y": 51.504,"m": 187.73}',),
('{"x": -0.126,"y": 51.504}',)
]
df = spark.createDataFrame(data, ["esri_json"]) \
.withColumn("point", ST.point_from_esri_json("esri_json"))
df.select(ST.is_measured("point").alias("is_measured")).show()
Result
+-----------+
|is_measured|
+-----------+
| true|
| false|
+-----------+
Version table
Release | Notes |
---|---|
1.0.0-beta | Python, SQL, and Scala functions introduced |