<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [geos-devel] Something wrong with GEOSEnvelope function in 3.1.0?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>LiN,<BR>
<BR>
Actually I looked at the bug tracker, and this appears to be an already reported bug so you are right I think.<BR>
<BR>
<A HREF="http://trac.osgeo.org/geos/ticket/160">http://trac.osgeo.org/geos/ticket/160</A><BR>
<BR>
In a mythical world the bounding box of a horizontal line would be a polygon where the top and bottom are the same line, but evidentally not the world we live in :)<BR>
<BR>
Though the test example in bug tracker was using PostGIS so not sure what that version was since PostGIS doesn't even use GEOS for that function (or at least not anymore and that particular bug example works correctly in PostGIS 1.3.5+)<BR>
<BR>
<BR>
Thanks,<BR>
Regina<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: geos-devel-bounces@lists.osgeo.org on behalf of Obe, Regina<BR>
Sent: Tue 4/14/2009 11:05 PM<BR>
To: GEOS Development List<BR>
Subject: [geos-devel] Something wrong with GEOSEnvelope function in 3.1.0?<BR>
<BR>
LiN ,<BR>
<BR>
I'm using GEOS 3.1.0 as well.&nbsp; However on further inspection it looks like PostGIS uses its own implementation of Envelope and not the GEOS one, so you could very well be right that there is something wrong with that GEOS function.<BR>
<BR>
Unfortunately I don't know enough about GEOS to test it apart from PostGIS.&nbsp;<BR>
<BR>
Maybe Mateusz or Sandro or Paul can confirm the issue.<BR>
<BR>
<BR>
Thanks,<BR>
Regina<BR>
<BR>
-----Original Message-----<BR>
From: geos-devel-bounces@lists.osgeo.org on behalf of LiN YongHeng<BR>
Sent: Tue 4/14/2009 10:35 PM<BR>
To: geos-devel@lists.osgeo.org<BR>
Subject: [geos-devel] Re: geos-devel Digest, Vol 78, Issue 11<BR>
<BR>
Hi Regina,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The GEOS' Version I used is &quot;3.1.0&quot;. Today, I use<BR>
GEOSEnvelop(&quot;LINESTRING(1 3,1 6)&quot;) again, what a pity, it don't return the<BR>
result like what you said. In my program, the result is &quot;POLYGON ((1&nbsp; 3, 1<BR>
3, 1&nbsp; 6, 1&nbsp; 6, 1 3))&quot;. So I want to ask you which version of GEOS are you<BR>
using?<BR>
<BR>
<BR>
<BR>
-----------------------------------------<BR>
The substance of this message, including any attachments, may be<BR>
confidential, legally privileged and/or exempt from disclosure<BR>
pursuant to Massachusetts law. It is intended<BR>
solely for the addressee. If you received this in error, please<BR>
contact the sender and delete the material from any computer.<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>