Bryan,<br><br>You can use the third or fourth arguments of the OGRBuildPolygonFromEdges which indicate the option to close the polygon automatically and the tolerence respectively.<br><br>Refer to <a href="http://www.gdal.org/ogr/ogr__api_8h.html#74f64386be8d675e8da33d289ccc9892">http://www.gdal.org/ogr/ogr__api_8h.html#74f64386be8d675e8da33d289ccc9892</a> for a more clear description of the function.<br>
<br><div class="gmail_quote">On Thu, Jun 25, 2009 at 5:20 PM, Bryan Keith <span dir="ltr"><<a href="mailto:bryan@ideotrope.org">bryan@ideotrope.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I'm posting this a second time because I see that by replying to an older<br>
gdal-dev message, my first message was put in that thread by some e-mail<br>
clients that sort threaded messages. Sorry for the repeat.<br>
<br>
I'm using BuildPolygonFromEdges in ogr in an attempt to take some lines<br>
and convert them to polygons. For a number of my sets of lines<br>
BuildPolygonFromEdges fails. I think this is because the lines aren't<br>
closed. Is there a way to put a tolerance into BuildPolygonFromEdges so<br>
that nodes within the tolerance are considered coincident?<br>
<br>
Or is there another tool that will do what I want? I used to use ArcInfo<br>
CLEAN to do this, but I don't have access to that tool. I'm open to any<br>
suggestions, not just gdal/ogr tools. Thank you.<br>
<br>
Bryan<br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><br>Best regards,<br>-- <br>Chaitanya kumar CH.<br>