[postgis-users] Envelope too big

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Fri Apr 9 12:02:04 PDT 2010


Ok forget about that... I was testing with 1.3. This is fixed in 1.5.

Pierre

>-----Original Message-----
>From: postgis-devel-bounces at postgis.refractions.net [mailto:postgis-devel-
>bounces at postgis.refractions.net] On Behalf Of Pierre Racine
>Sent: 9 avril 2010 15:00
>To: PostGIS Users Discussion; PostGIS Development Discussion
>Subject: [postgis-devel] Envelope too big
>
>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-devel mailing list
>postgis-devel at postgis.refractions.net
>http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-users mailing list