Ir al contenido

Devuelve el último Point de un LineString.

ST_ENDPOINT(<geometry>)
Argumentos Descripción
<geometry> El argumento debe ser una expresión de tipo GEOMETRY que represente un LineString.

Geometría.

SELECT
ST_ENDPOINT(
ST_GEOMETRYFROMWKT(
'LINESTRING(1 1, 2 2, 3 3, 4 4)'
)
) AS pipeline_endpoint;
┌───────────────────┐
│ pipeline_endpoint │
├───────────────────┤
│ POINT(4 4) │
└───────────────────┘