Skip to main content
Add a point to either the end of a linestring or a specified index. If index is not provided then point will be added to the end of line_string. SQL reference: ST_AddPoint

Signature

Parameters

ColumnOrName
required
Linestring geometry column to add point to.
ColumnOrName
required
Point geometry column to add to line_string.
Optional[Union[ColumnOrName, int]]
default:"None"
0-based index to insert point at in line_string, if None then point is appended to the end of line_string, defaults to None

Returns

Column
Linestring geometry column with point added.