[postgis-users] Intersecting lines to Polygons

chlists chlists at me.com
Mon Mar 11 05:13:02 PDT 2013


Hi list,

I'd like to combine a global compilation of line data which intersect into a global polygon dataset. ArcGIS has a tool called 'Features to Polygons' which does this in one step for which I have yet to find an equivalent in PostGIS. ST_MakePolygon and ST_Polygon require closed linestrings. I have simple line features which randomly connect like in the attached screenshot. There are no attributes which describe which polygon a single linestring belongs to. Can this be done easily or does this involve building topologies? Any pointers much appreciated.

Thanks,
Chris




-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 13850 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20130311/dff15b74/attachment.png>


More information about the postgis-users mailing list