<div dir="ltr"><div dir="ltr">It appears that ST_LineMerge alters the sequence of vertices when a set of line geometries that meet at ends are merged together.<div><br></div><div><a href="https://postgis.net/docs/ST_LineMerge.html">ST_LineMerge (postgis.net)</a><br></div><div><br></div><div>Any robust way to do the following?</div><div><br></div><div>Given a set of lines that meet at ends</div><div>Generate a new line by merging these together and maintain the original order of vertices</div><div><br></div><div>Regards,</div><div><br></div><div>David</div></div></div>