[postgis-users] Envelope too big
Pierre Racine
Pierre.Racine at sbf.ulaval.ca
Fri Apr 9 12:00:15 PDT 2010
Hi,
St_Envelope() seems to return and envelope a bit too big.
SELECT ST_AsText(ST_Envelope(GeomFromText('LINESTRING(782325.5 26738262.5,788410.5 26744042.5)')))
returns
POLYGON((782325.5 26738262,782325.5 26744044,788410.5 26744044,788410.5 26738262,782325.5 26738262))
It seems to me that this query should return
POLYGON((782325.5 26738262.5,782325.5 26744042.5,788410.5 26744042.5,788410.5 26738262.5,782325.5 26738262.5))
instead...
Pierre
More information about the postgis-users
mailing list