[postgis-users] Parallel linestring

Olivier Leprêtre o.lepretre at gmail.com
Sat Apr 15 09:51:56 PDT 2017



I would appreciate to get some suggestions to detect and convert
semi-parallel linestring. I have Y shaped linestrings composed of two
linestrings with a common part. My goal is to detect that there are two
lines composing the Y trunk, merging them into a new one (or keeping only
one of them) and placing a new node at the Y center, to get a result
composed of three linestrings, one trunk and two branches. Lines have the
same starting point at the bottom of the Y. 


I tried to use toTopogeom but this does not help so far as it does not
create a topopology when lines are parallels and close (0,03 meters as an


Any idea to detect the parallel part would be appreciated.


Thanks !



L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20170415/dfe77f02/attachment.html>

More information about the postgis-users mailing list