Re: [gdal-dev] Polygonizer / Lines

2013-03-18 Thread Alisson Barbosa
Yes Peter. I'm trying to get the Thiessen polygons. Thanks for the tips, but the Polygonize method of OGRMultiLineString worked for me. Thank you. 2013/3/15 Peter Halls p.ha...@york.ac.uk Alisson, in vector mode, where you are working with linestrings, the procedure is as described in

Re: [gdal-dev] Polygonizer / Lines

2013-03-15 Thread Alisson Barbosa
Thank you Chaitanya, I had read the explanation of Peter Halls. But that was *raster polygonization*. I am currently working with another type: *polygonization of OGRLineStrings*. My question was because i was not able to polygonize using the mentioned method. I created an OGRMultiLineString or

Re: [gdal-dev] Polygonizer / Lines

2013-03-15 Thread Chaitanya kumar CH
Alisson, Can you provide a sample dataset that didn't work? On Fri, Mar 15, 2013 at 6:20 PM, Alisson Barbosa alisson.u...@gmail.comwrote: Thank you Chaitanya, I had read the explanation of Peter Halls. But that was *raster polygonization*. I am currently working with another type:

Re: [gdal-dev] Polygonizer / Lines

2013-03-15 Thread Peter Halls
Alisson, in vector mode, where you are working with linestrings, the procedure is as described in Stephen Wise's book, GIS Basics (Taylor Francis, 2002) chapters 2 - 4. You will need to compute the intersection of all the lines (Chapter 3), split them at the intersections and either

[gdal-dev] Polygonizer / Lines

2013-03-14 Thread Alisson Barbosa
Hi friends, I have a set of OGRLineStrings and an OGRLinearRing with many intersections. I would like to polygonize this set of lines. Can anybody help me? Best regards, -- Alisson Barbosa Systems Analyst - FUNCEME M.Sc. in Computer Science - MACC Graduate in Computer Science - UECE

Re: [gdal-dev] Polygonizer / Lines

2013-03-14 Thread Chaitanya kumar CH
Allison, Check out OGRGeometry::Polygonize() The result depends on the type of intersections in your lines. -- Best regards, Chaitanya Kumar CH On 14 Mar 2013 21:53, Alisson Barbosa alisson.u...@gmail.com wrote: Hi friends, I have a set of OGRLineStrings and an OGRLinearRing with many

Re: [gdal-dev] Polygonizer / Lines

2013-03-14 Thread Alisson Barbosa
Can you explain a bit better? 2013/3/14 Chaitanya kumar CH chaitanya...@gmail.com Allison, Check out OGRGeometry::Polygonize() The result depends on the type of intersections in your lines. -- Best regards, Chaitanya Kumar CH On 14 Mar 2013 21:53, Alisson Barbosa alisson.u...@gmail.com

Re: [gdal-dev] Polygonizer / Lines

2013-03-14 Thread Chaitanya kumar CH
Alisson, You can refer to the method's documentation here: http://www.gdal.org/ogr/classOGRGeometry.html#a674319670e735bf6d4049300096157ec The mechanism of this operation was already explained Peter Halls in this mailing list[1]. GEOS does a good job identifying line strings touching at end