<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Use ST_buffer, as below:<br><br>create table mline (gid serial primary key, name varchar(10));<br>select addgeometrycolumn('','mline','geom',4326,'MULTILINE',2);<br>insert into mline (name,geom ) values <br>('one',setsrid(geometryfromtext((174 -45,175 -44),(174 -44,175 -45)),4326));<br>insert into mline (name,geom ) values ('two',<br>setsrid(geomfromtext('MULTILINESTRING((176 -45,176 -44),(173 -44,173 -45))'),4326));<br>update mline set buff=multi(buffer(geom,0.05));<br><br>The result is as in the attached image. It will generate the combined buffer of all the constituent lines in the multiline, NOT the individual buffer zones around each line. If you need all the constituent polygons for each line individually, you'll need to separate them out into separate line features instead of a multiline.<br><br>Note that buffering by a distance may require the buffer to
 be generated in a suitable projection - you can't do it in lat/long), so you may need to transform your multiline to this projection, generate the buffer, & transform it back again<br><br>ie: buff=transform(buffer(transform(mline,nnnn)),4326)<br><br>HTH,<br><br>  Brent Wood<br>--- On <b>Sat, 6/4/11, Jaime Lop <i><jaimelop@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jaime Lop <jaimelop@gmail.com><br>Subject: [postgis-users] multiline with with to polygon<br>To: "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Saturday, June 4, 2011, 1:49 AM<br><br><div id="yiv1194236511">Hello everyone,<br><br>Is there an easy way to convert multi lines with a width to polygons?<br><br>For example, I have a corridor defined as 100 kms around a given line.<br><br>Thanks,<br>Jaime<br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>