ST_MinX

ST_MinX takes a geometry column and returns a double column. The output column contains the minimum x-coordinate of each input geometry.

FunctionSyntax
Pythonmin_x(geometry)
SQLST_MinX(geometry)
ScalaminX(geometry)

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

Examples

PythonPythonSQLScala
1
2
3
4
5
6
7
8
9

from geoanalytics_fabric.sql import functions as ST

line_json = '{"paths": [[[0, 51, 801, 5],[1, 51, 129, 6],[2, 52, 206, 4]]], "hasM":true, "hasZ":true}'

df = spark.createDataFrame([(line_json, )], ["line_json"]) \
    .withColumn("geometry", ST.line_from_esri_json("line_json"))

df.select(ST.min_x("geometry").alias("min_x")).show()
Result
1
2
3
4
5
+-----+
|min_x|
+-----+
|  0.0|
+-----+

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close