<div dir="ltr">Ok,<div>I think the topology edition is qgis part is OK (need some cleaning,etc).</div><div><br></div><div>Now i'm doing the "recompute edge-linking and face-linking locally".</div><div><br></div><div>i'm trying to write the function so it scales nicely.</div><div><br></div><div>As you must be well aware, this function is the last step we need to be able to batch create topology, which is another long wanted and discussed feature.</div><div><br></div><div>(Batch creation from linestring:</div><div><span style="background-color:rgb(255,217,102)">node with GEOS, </span></div><div><span style="background-color:rgb(255,217,102)">insert node into topology</span></div><div><span style="background-color:rgb(255,217,102)">cut linestring into pieces with nodes (various option, GEOS would be best)</span></div><div><span style="background-color:rgb(255,217,102)">insert linestring pieces as edge, with only start_node and end_node correct</span></div><div><span style="background-color:rgb(204,0,0)"><font color="#f9cb9c">compute edge_linking and face-linking</font></span></div><div>)</div><div>I already have everything in yellow.</div><div><br></div><div>Cheers,</div><div>Rémi-C</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-11 11:49 GMT+01:00 Rémi Cura <span dir="ltr"><<a href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Great, <div>thanks ! </div><div><br></div><div>I will finish the trigger stuff (that does not udpate left/right and face , but correctly link node and edge)</div><div>, then try to write a function that for a list of node, correct the edge-linking of all linked edge.<br><br></div><div>Cheers,</div><div>Rémi-C</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-02-11 11:23 GMT+01:00 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Wed, Feb 11, 2015 at 11:15:26AM +0100, Rémi Cura wrote:<br>
> Hey everybody (and most probably Sandro),<br>
><br>
> Work on trigger is going on.<br>
><br>
> I end up with a corrupted topology (by design):<br>
> I have list of nodes that have changed ,<br>
> association with edges has been updated and is correct (start_node,<br>
> end_node).<br>
><br>
> Now I would like a function to correct next_lft, next_right, and face only<br>
> for the edge associated with my list of nodes.<br>
><br>
> Do you know if I can scavenge it somewhere?<br>
<br>
</div></div>I've been actually thinking for some time that we'd need such a function.<br>
Right now the code computing that (which I call "edge linking") is buried<br>
into the ST_AddEdgeModFace and ST_AddEdgeNewFaces functions.<br>
<br>
The primitive block of such function could be GetNodeEdges:<br>
<a href="http://postgis.net/docs/manual-dev/GetNodeEdges.html" target="_blank">http://postgis.net/docs/manual-dev/GetNodeEdges.html</a><br>
That function does not make use of "edge linking" fields.<br>
<br>
--strk;<br>
<br>
  ()   Free GIS & Flash consultant/developer<br>
  /\   <a href="http://strk.keybit.net/services.html" target="_blank">http://strk.keybit.net/services.html</a><br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>