Skip to main content
Replace Nth point of linestring with given point. Index is 0-based. Negative index are counted backwards, e.g., -1 is last point. ST_SetPoint

Signatures

Parameters

linestring
Geometry
required
The linestring value.
index
Integer
required
The index value.
point
Geometry
required
The point value.

Return type

The resulting geometry.

Example