[postgis-tickets] [PostGIS] #4939: Add possibility to merge lines without changing order of points.
PostGIS
trac at osgeo.org
Fri Jul 2 01:04:05 PDT 2021
#4939: Add possibility to merge lines without changing order of points.
-------------------------+---------------------------
Reporter: evgen | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 3.1.3
Component: postgis | Version: 2.5.x
Keywords: |
-------------------------+---------------------------
There is a great function ST_LineMerge. But it could reverse lines in
multiline to connect them. E.g.
`
SELECT ST_AsText(ST_LineMerge(
ST_GeomFromText('MULTILINESTRING((-29 -27,1 2),(-29 -27,-45 -33),(-45
-33,-46 -32))'))
);
`
returns `LINESTRING(1 2,-29 -27,-45 -33,-46 -32)` but it could be
`MULTILINESTRING((-29 -27,1 2),(-29 -27,-45 -33,-46 -32))'`.
I process one way roads. When I merge them I'd like to keep point order to
know original direction of that segments.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4939>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list