ST_PointM

ST_PointM takes three numeric columns or double values and returns a point column. The three numeric columns or values must contain the x,y coordinates and m-values of the point geometries. You can optionally specify a spatial reference for the result point column. The sr parameter value must be a valid SRID or WKT string.

To create point geometries without m-values or z-coordinates use ST_Point. To create point geometries with z-coordinates use ST_PointZ, ST_PointZM, or ST_MakePoint.

FunctionSyntax
Pythonpoint_m(x,y,m,sr=None)
SQLST_PointM(x,y,m,sr)
ScalapointM(x,y,m,sr)

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

Examples

PythonPythonSQLScala
1
2
3
4
5
6

from geoanalytics_fabric.sql import functions as ST

df = spark.createDataFrame([(-178.0, -17.0, 100)], ["longitude", "latitude", "m"])

df.select(ST.point_m("longitude","latitude","m", sr=4326).alias("point_m")).show(truncate=False)
Result
1
2
3
4
5
+--------------------------+
|point_m                   |
+--------------------------+
|{"x":-178,"y":-17,"m":100}|
+--------------------------+

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