<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="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 class="HOEnZb"><div class="h5">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">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>