Jens<br>
 You can create a boundary() around your points and get the
centroid() after or simply get x() and y() from
centroid(extent(the_geom)) from your set of points. All of these is a
geometric aprouch of the problem.<br>
  I think you have to decide in a statistics aprouch or a
geometric aprouch. Example: if you take the average() of x() and y() of
all your points your are aprouching in a statistic way (the expected
position of a set of points). In this case, you should know the
behaviour of the phenomena mapped to choose the best probability
density function that fit your problem. Maybe you can implement
something more apropriated with R-statistics package for postgreSQL.<br>
Regards.<br>
<br>
 -- <br>
Marco Vieira<br>
+55 21 9499-6800<br>
e-mail: <a href="mailto:maovieira@gmail.com">maovieira@gmail.com</a><br><br><div><span class="gmail_quote">2006/3/9, Jens Werdin <<a href="mailto:jens.werdin@blids.de">jens.werdin@blids.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello everybody,<br><br>I have a problem finding the center of many points.<br>What i tries was:<br>writing a script which gets the coordinates of the points i wanted:<br><br>select x(), y() from adresses where... order by x()
<br><br>then I made a linestring out of the points and got the center:<br><br>Select AsText(Centroid(linestringfromtext('LINESTRING(.. .., .. ..,)',4326)))<br><br>but I think it is not correct enough. then i tried<br><br>
Select<br>AsText(Centroid(geomcollfromtext('GEOMETRYCOLLECTION(POINT(.. ..),POINT( .. ..),..)',4326)))<br><br>and i got back POINT(nan nan);<br><br>How can I get the center of many points?<br><br>Greetings Jens<br><br><br>
_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">
http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div><br><br clear="all"><br><br>