ST_IsMeasured

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.

FunctionSyntax
Pythonis_measured(geometry)
SQLST_IsMeasured(geometry)
ScalaisMeasured(geometry)

For more details, go to the GeoAnalytics for Microsoft Fabric API reference for is_measured.

Examples

PythonPythonSQLScala
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
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
Use dark colors for code blocksCopy
1
2
3
4
5
6
+-----------+
|is_measured|
+-----------+
|       true|
|      false|
+-----------+

Version table

ReleaseNotes

1.0.0-beta

Python, SQL, and Scala functions introduced

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.