.. don't ask why im not just using min(st_distance) to solve that nearest thing problem :)<br><br>you should know that all the unioned points are having the same coordinates.<br><br><div class="gmail_quote">2009/11/26 Mehmet Sirin <span dir="ltr"><<a href="mailto:m.sirin07@googlemail.com">m.sirin07@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi, is someone out there who can explain how to make several points to a multipoint.. i tried st_union and st_collect but what comes out is a multilinestring and geometrycollection(multilinestring(..)) respectively.<br>
<br>code with which the unwilling multilinestring happens:<br>
<br>select astext(st_union(c.geom_4326)) from (<br>    select * from (select * from(<br>        select *,buffer(geom_4326,0.01)as buff from gc_berechnet where name='Neuer Graben' and                <br>        gemeinde='Osnabrück')a)b, zip_coordinates zc<br>

where contains(buff,zc.geom) )c<br><br><br>what i want to do: <br>1.buffering a pointt (A) with a radius of 1km<br>2.take a look which other points lie in this buffer polygon<br>3.find out which point inside the buffer is nearest to the first point (A) i buffered.<br>

important for 3. : when having a multipoint i can easily use st_distance to determine the closest point to point (A)<br><br><br>you can tell me how to create multipoint ? then i love you^^<br><br><br><br>leaving you kind regards<br>
<font color="#888888">
mehmet sirin c.<br>
</font></blockquote></div><br>