<div dir="ltr"><div><div><div>Thanks,<br></div>I wanted to avoid the computing of winding.<br><br></div>But now I doubt it is possible.<br>Instead of winding I chose to compute signed area, because I'm afraid robust winding may be difficult.<br><br>As a workaround, I wrote<a href="https://github.com/Remi-C/PPPP_utilities/blob/master/postgis_topology/editing_in_qgis/rc_computeRingOrder.sql"> a function </a>that compute the signed area of a ring,<br>and that is robust to precision issue.<br><br></div><div>Now I still have trouble getting the correct ring because the function topology.getRingEdge doesn't return the correct ring in one case.<br><br></div><div>I do have a workaround for this, which I will attach to the ticket.<br></div><div><br></div>Cheers,<br>Rémi-C<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-20 10:11 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"><span class="">On Thu, Feb 19, 2015 at 07:04:44PM +0100, Rémi Cura wrote:<br>
> Hello,<br>
> somebody knows how to find the information?<br>
><br>
> I can't find something that will reliabily work with flat ring.<br>
<br>
</span>Get on the side of the edge where the face you're interested in is found.<br>
Walk on that side of the edge until you end back to where you started<br>
(follow the first edge direction if on its left, opposite direction otherwise).<br>
<br>
Compute winding of the resulting ring.<br>
An inner ring of the face in object would be ordered counterclockwise.<br>
The shell would be clockwise.<br>
<br>
<a href="http://strk.keybit.net/blog/2012/01/28/a-walk-on-the-wild-side/" target="_blank">http://strk.keybit.net/blog/2012/01/28/a-walk-on-the-wild-side/</a><br>
<br>
--strk;<br>
<br>
 Sent from our free software<br>
 <a href="http://www.gnu.org/philosophy/free-sw.html" target="_blank">http://www.gnu.org/philosophy/free-sw.html</a><br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>