Skip to content

ST_EndPoint

Returns last point of a linestring.

Usage

geometry ST_EndPoint(geom: geometry)

Arguments

  • geom (geometry): Input geometry

Examples

SELECT ST_EndPoint(ST_GeomFromText('LINESTRING(100 150, 50 60, 70 80, 160 170)'));
┌──────────────────────────────────────────────────────────────────────────────┐
│ st_endpoint(st_geomfromtext(Utf8("LINESTRING(100 150, 50 60, 70 80, 160 170) │
│                                     ")))…                                    │
╞══════════════════════════════════════════════════════════════════════════════╡
│ POINT(160 170)                                                               │
└──────────────────────────────────────────────────────────────────────────────┘