[postgis-users] How to get the centroid of an bounding box using st_extent
Charlie Savage
cfis at savagexi.com
Wed Sep 19 13:40:16 PDT 2007
Paul,
>
> Hmmm... for an linear envelope would returning a linestring not make
> more sense?
That does raise another question.
select astext(envelope('LINESTRING(0 0, 0 10)'))
"POLYGON((0 0,0 10,0 10,0 0,0 0))"
select valid(envelope('LINESTRING(0 0, 0 10)'))
false
Should envelope should do the same? What does JTS/GEOS do in this case?
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/1c6764aa/attachment.bin>
More information about the postgis-users
mailing list