[postgis-users] Centroid out a list of points

Suhr, Ralf Ralf.Suhr at itc-halle.de
Fri Jun 12 02:30:53 PDT 2009


Hi Pedro,

take only the outer Polygon (ST_Boundary) from your query or simpler the centroid from extent.

Gr Ralf



-----Ursprüngliche Nachricht-----
Von: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-bounces at postgis.refractions.net] Im Auftrag von Pedro Doria Meunier
Gesendet: Freitag, 12. Juni 2009 11:05
An: PostGIS Users Discussion
Betreff: [postgis-users] Centroid out a list of points
Wichtigkeit: Hoch


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I'm trying to get the centroid of a list of points and I'm a bit unsure on how to proceed. The first thing that came to mind was converting the list of points to a polygon but that wouldn't always return a "clean" polygon (e.g. inner points) ... Any thoughts would be greatly appreciated :)

BR,
- --

Pedro Doria Meunier
GSM: +351 96 17 20 188
Skype: pdoriam
 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFKMhor2FH5GXCfxAsRArnIAJ0cg/MJ148R+krJ9RscgH9saNA0ggCeIGiJ
WF2SAplqMNijkZ8tXOFeP5w=
=Db0b
-----END PGP SIGNATURE-----

_______________________________________________
postgis-users mailing list postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list