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
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to