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

Charlie Savage cfis at savagexi.com
Wed Sep 19 18:58:07 PDT 2007


> In its defence I'll point out that in my experience working with JTS it 
> is *very* rare to need to obtain a Geometry as an envelope.  Usually 
> when doing "Envelopey" kinds of things it is much faster, simpler, and 
> more robust to simply work with actual Envelope objects.

Right.  Except with PostGIS its easier to store the Geometries so that 
an SRID can be associated with them and you can use a GIST index.  Or 
can you index a bounds2D?

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/f4e9d433/attachment.bin>


More information about the postgis-users mailing list