[postgis-users] How to get the centroid of an bounding box using st_extent

Charlie Savage cfis at savagexi.com
Wed Sep 19 11:00:09 PDT 2007


> PostgreSQL will rewrite Centroid(Extent()) to Centroid(Box2Geom(Extent())

Right.  I was thinking more about how you would change Box2Geom to 
recognize the extent is actually a point (being wary of comparing 
floating point numbers).

Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070919/314ff109/attachment.bin>


More information about the postgis-users mailing list