ST_SetPoint (linestring: Geometry, index: Integer, point: Geometry)
SELECT ST_SetPoint(ST_GeomFromText('LINESTRING (0 0, 0 1, 1 1)'), 2, ST_GeomFromText('POINT (1 0)'))
LINESTRING (0 0, 0 1, 1 0)
Was this page helpful?