Ir al contenido

Devuelve el primer Point de un LineString.

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

Geometría.

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