<div dir="ltr">Hi,<div><br></div><div>Look at st_polygonize() and st_buildArea()</div><div><br></div><div style>Topology can also be of a great help here.</div><div style><br></div><div style>Nicolas</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 11 March 2013 13:13, chlists <span dir="ltr"><<a href="mailto:chlists@me.com" target="_blank">chlists@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
<br>
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.<br>

<br>
Thanks,<br>
Chris<br>
<br>
<br>
<br>
<br>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br></div>