Oh men thanks!!<br><br>I read about ST_Collect but I didn't know exactly what it does :)<br>It works thanks a lot :P<br><br>Simon<br><br><div class="gmail_quote">On Tue, Nov 18, 2008 at 15:50, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">lisek lichu wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I hane in my database 6 linestrings and I want to get the boundary rectangle from them (not from each of them)<br>
<br>
If i use:<br>
select AsText(ST_Boundary(the_geom)) from segments;<br>
<br>
i get<br>
<br>
MULTIPOINT(-8.593025208 41.180818082,-8.594827652 41.187632944)<br>
MULTIPOINT(-8.594827652 41.187632944,-8.591823578 41.193090782)<br>
MULTIPOINT(-8.591823578 41.193090782,-8.611950874 41.190119708)<br>
MULTIPOINT(-8.611950874 41.190119708,-8.613796234 41.179203081)<br>
MULTIPOINT(-8.613796234 41.179203081,-8.602809906 41.180559684)<br>
MULTIPOINT(-8.602809906 41.180559684,-8.593025208 41.180818082)<br>
<br>
<br>
but i need one big Boundary. (should I group them by some atribute or there is some siplier way to do that?)<br>
</blockquote>
<br></div></div>
select AsText(ST_Envelope(ST_Collect(the_geom))) from segments;<br>
<br>
Does this work for you?<br>
<br>
-Steve<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">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>
</blockquote></div><br>