<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"><!----></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Depending on how your lines are constructed, you might also look to ST_Union or ST_Node to create the nodes for overlapping lines, which you will likely need, then feed that into
 ST_Polygonize or ST_BuildArea.
<div><br>
</div>
<div>Best,</div>
<div>Steve<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div class="WordSection1">
<p class="MsoNormal"><img src="http://sig.cmparks.net/cmp-ms-90x122.png" alt="http://sig.cmparks.net/cmp-ms-90x122.png" align="left" height="122" hspace="12" width="90">
<span style="font-size:14.0pt; font-family:"Arial","sans-serif"; color:#006C56">Stephen V. Mather<br>
</span><span style="font-size:11.0pt; font-family:"Arial","sans-serif"; color:#006C56">GIS Manager<br>
</span><span style="font-size:9.0pt; font-family:"Arial","sans-serif"; color:#006C56">(216) 635-3243 (Work)
</span><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"><a href="http://www.clemetparks.com" target="_blank"><span style=""><br>
clevelandmetroparks.com</span></a></span></p>
<p class="MsoNormal"></p>
<br>
</div>
<div class="WordSection1"><br>
</div>
<div class="WordSection1"><br>
</div>
</div>
<div></div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF72141" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> postgis-users-bounces@lists.osgeo.org [postgis-users-bounces@lists.osgeo.org] on behalf of Nicolas Ribot [nicolas.ribot@gmail.com]<br>
<b>Sent:</b> Monday, March 11, 2013 9:29 AM<br>
<b>To:</b> PostGIS Users Discussion<br>
<b>Cc:</b> PostGIS Users Discussion<br>
<b>Subject:</b> Re: [postgis-users] Intersecting lines to Polygons<br>
</font><br>
</div>
<div></div>
<div>
<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" target="_blank">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>
</div>
</div>
</div>
</div>
</body>
</html>