Hi,<br><br>I do some test.<br><br>I notice that the ST_OrderingEquals<br><br>return true only when two lines are perfectly identical (same sequence vertex too).<br><br>For example:<br><br>Select ST_OrderingEquals(<br>    ST_GeomFromText('LINESTRING(2 3, 3 2, 6 1)',3003 ),ST_GeomFromText('LINESTRING(2 3, 3 2, 6 1)',3003 )<br>
)<br><br>But if I add a single vertex to one of lines it return false.<br>Select ST_OrderingEquals(<br>
    ST_GeomFromText('LINESTRING(2 3, 3 2, 6 1, 8 9)',3003 
),ST_GeomFromText('LINESTRING(2 3, 3 2, 6 1)',3003 )<br>
)<br>
<br>So it is not useful to detect the versus of lines because<br>the linestring of the line table is not sure they are perfectly identical to the definition of the boundary of polygons.<br>The boundary of polygons are always closed lines.<br>
Instead the same closed arc may be require more lines of the line table.<br><br>More again:<br>even supposing the lines-table elements was closed like the boundary of polygons the ST_OderingEqual require they are <br>first vertex identical.<br>
<br>So this case of two lines identical, and same versus but different starting vertex, return false.<br><br>Select ST_OrderingEquals(<br>    ST_GeomFromText('LINESTRING(2 3, 3 2, 6 1, 8 9, 2 3)',3003 ),ST_GeomFromText('LINESTRING(3 2, 6 1, 8 9, 2 3, 3 2)',3003 )<br>
)<br><br>Regards,<br><br><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>