ST_EndPoint

ST_EndPoint takes a linestring column and returns a point column. The point column represents the last point of the input linestring.

FunctionSyntax
Pythonend_point(linestring)
SQLST_EndPoint(linestring)
ScalaendPoint(linestring)

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

This function implements the OpenGIS Simple Features Implementation Specification for SQL 1.2.1.

Examples

PythonPythonSQLScala
1
2
3
4
5
6

from geoanalytics_fabric.sql import functions as ST, Linestring

df = spark.createDataFrame([(Linestring([[[5,5],[7,6],[6,6],[4,2]]]),)], ["linestring"])

df.select(ST.end_point("linestring").alias("end_point")).show()
Result
1
2
3
4
5
+-------------+
|    end_point|
+-------------+
|{"x":4,"y":2}|
+-------------+

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