<div dir="auto">Hi,<div dir="auto">I will a chance trying to use the ST_Node.</div><div dir="auto"><br></div><div dir="auto">A.</div><div dir="auto"><br><div dir="auto"><br></div><div dir="auto"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il mar 3 set 2019, 19:18 Martin Davis <<a href="mailto:mtnclimb@gmail.com">mtnclimb@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Have you tried using ST_Split passing each input line and for the second argument a MultiLineString comprised of all lines that it might intersect (obtained via BBOX or ST_Intersects query)? It seems like that should not create any duplicate linework from the input line.</div><div><br></div><div>As far as I know there's no other way to do this using current PostGIS functions. It's an interesting requirement - it sounds like essentially you want to node one layer against another. There's actually the machinery to do this internally in PostGIS/GEOS, but it's never come up as a requirement before, so has not been exposed as a function. </div><div><br></div><div>What is your use case?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2019 at 9:48 AM <<a href="mailto:paul.malm@lfv.se" target="_blank" rel="noreferrer">paul.malm@lfv.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If I split lines with another line layer, I will get a lot of duplicaded line segments since the lines could be intersected several times. It is not possible to use update on the table when splitting one geomety to two.<br>
I think it must be possible, but I’m not that skilled in SQL and I’ve not found any examples on the net.<br><br><br></blockquote></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>