Skip to main content
Return the Nth point in a single linestring or circular linestring in the geometry. Negative values are counted backwards from the end of the LineString, so that -1 is the last point. Returns NULL if there is no linestring in the geometry. ST_PointN

Signatures

Parameters

geom
Geometry
required
The input geometry.
n
Integer
required
The index or count value.

Return type

The resulting geometry.

Example