[gdal-dev] Convert polyline to polygon

Paul Meems bontepaarden at gmail.com
Mon Jul 26 14:48:54 EDT 2010


I'm trying to convert a polyline shapefile into a polygon shapefile.
The polylines are all sort of circular shaped.
When the polyline is not closed and is not crossing itself it is easy to do.
Just add the point of the polyline to the new polygon and add the first
point as the last point to close the polygon.
When the polyline segments cross each other it is much more difficult to
create a valid polygon.

I was wondering if such a method would already be invented by the
GDAL/OGR/GEOS team.

Thanks,

Paul
The Netherlands
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100726/910a8267/attachment.html


More information about the gdal-dev mailing list