[gdal-dev] convert lines to polygons

Bryan Keith bryan at ideotrope.org
Wed Jun 24 18:49:52 EDT 2009


Hello,

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