<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">You can work around this problem by using the Postgis topology capability. It will build polygons (faces) from such lines which you can use as topopolygons or extract as conventional geometries.<br><br>--- On <b>Tue, 5/15/12, george wash <i><gws293@hotmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: george wash <gws293@hotmail.com><br>Subject: Re: [postgis-users] Closing polylines<br>To: postgis-users@postgis.refractions.net<br>Date: Tuesday, May 15, 2012, 7:30 PM<br><br><div id="yiv322624705">
  

    
  
  <div>
    <font size="+1">Thank you Nicolas, I understand the second point (a
      single segment poly) but I am having a different sort of problem
      from your first point. I haven't been able to pinpoint it yet but
      I suspect it happens when the segments are touching, e.g. the
      endpoint of one is same as the startpoint of another one (but the
      segments are not necessarily in an orderly sequence). I also
      suspect that the problem is caused by the start and end points
      being at opposite ends of the segments eg 1....10,
      20.....10,10.....1 so that the closest segment is not necessarily
      the next one in the sequence. This is more difficult to explain
      than to show, so I have attached the seg table (in shapefile
      format) containing a very small subset of the data I am using to
      test your functions,  just in case you have the time to look at
      it.<br>
      Thanks again for your help<br>
      <br>
    </font>
  </div>

</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>