<div dir="ltr"><div><div><div><div><div><div>Hi all,<br><br></div>Please tell me if I'm doing something incorrectly, but I seem to be getting wrong results for the following bounding box query:<br><br>select * from geotest where geom && ST_MakeEnvelope(-105.17353271032549,39.798766541338225,-105.07765728967452,39.83016145866177,4326)<br>

<br></div>Given table with columns: name (varchar), lat (double), lon (double), geom (geometry). geom having srid 4326 points<br><br></div>A
 row with lat = 39.830165, lon = -105.130637 is returned. I find this 
very peculiar because the latitude is greater than the maxiumum latitude
 in the envelope (39.83016145866177). If I then add a 'and lat <= 
39.83016145866177' clause, the row is no longer returned.<br>
</div>I noticed this on postgres 9.1 with postgis 1.5 then when testing again got the same results on postgres 9.2 and postgis 2.0<br><br></div><div>Is this intended and I missed some documentation somewhere, or is this an issue?<br>

</div><div><br></div>Thank you,<br></div>Pavel Shub</div>