I have a table in PostGIS and PostgreSQL with a LINESTRING column. I am creating a query, the result of which is to join this table with itself, and I know that the geometry columns (call them geom ) of each of them are connected, i.e. The first line is LINESTRING from A--B--…---K , and the second line K--L--…--T , i.e. the last point of the first LINESTRING is the same as the first point of the second LINESTRING.
Is there any function / expression where "concatinate" / "join" / "merge" / "extend" these 2 LINESTRING to 1 LINESTRING that looks like A--B--…--K--L--…--T ?
source share