ST_EndPoint

Determine the last point of a line.

Syntax

ST_EndPoint(geo);
geo
The input line geometry.

Type: ST_GEOMETRY(ANY)

Returns

A value of type ST_GEOMETRY(126) that contains the point geometry of the end point of the input line, or NULL if there is no end point.

Examples

inza..ST_AsText(inza..ST_EndPoint(inza..ST_WKTToSQL('LINESTRING (0 0, 1 1, 1 2))')));

ST_ASTEXT
-----------
POINT (1 2)
(1 row)