ST_PointN(INT) method

Returns the nth point in the linestring.

Syntax

linestring-expression.ST_PointN(INT n)

Parameters

Returns

ST_Point If the value of linestring-expression is the empty set, returns NULL. If the specified position n is less than 1 or greater than the number of points, returns NULL. Otherwise, returns the ST_Point value at position n.

Examples

Standards

SQL/MM (ISO/IEC 13249-3: 2006) 7.2.5