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

2009-08-30 Thread Chaitanya kumar CH
Bryan, You can use the third or fourth arguments of the OGRBuildPolygonFromEdges which indicate the option to close the polygon automatically and the tolerence respectively. Refer to http://www.gdal.org/ogr/ogr__api_8h.html#74f64386be8d675e8da33d289ccc9892for a more clear description of the funct

Re: [gdal-dev] convert lines to polygons

2009-06-25 Thread Frank Warmerdam
Bryan Keith wrote: 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 BuildPolygonFro

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

2009-06-25 Thread Bryan Keith
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

[gdal-dev] convert lines to polygons

2009-06-24 Thread Bryan Keith
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