[gdal-dev] convert lines to polygons (2nd post)

Bryan Keith bryan at ideotrope.org
Thu Jun 25 07:50:11 EDT 2009


Hello,

I'm posting this a second time because I see that by replying to an older
gdal-dev message, my first message was put in that thread by some e-mail
clients that sort threaded messages.  Sorry for the repeat.

I'm using BuildPolygonFromEdges in ogr in an attempt to take some lines
and convert them to polygons.  For a number of my sets of lines
BuildPolygonFromEdges fails.  I think this is because the lines aren't
closed.  Is there a way to put a tolerance into BuildPolygonFromEdges so
that nodes within the tolerance are considered coincident?

Or is there another tool that will do what I want?  I used to use ArcInfo
CLEAN to do this, but I don't have access to that tool.  I'm open to any
suggestions, not just gdal/ogr tools.  Thank you.

Bryan




More information about the gdal-dev mailing list