[postgis-users] extent changed a little in rc3

Bernhard Herzog bh at intevation.de
Fri Mar 11 08:40:24 PST 2005


I've finally found some time to test the postgis 1.0.0rc3 with Thuban.
The test suite stumbled over a change in the return value of the extent
function.  The return value has fewer digits in the coordinates of the
bounding box and they now differ enough from the values expected by the
test cases to make some tests fail.  

I think the new code returns too few digits, since it now gives an
extent for a single point that does not contain the point.  For example
with rc2 I get:

select extent('POINT(1.0000001 2.0000002)'::geometry);
                   extent                   
--------------------------------------------
 BOX(1 2,1.00000011920929 2.00000023841858)


This clearly contains the point (even though the coordinates cannot be
represented exactly in binary floating point).  However, with with rc3:

select extent('POINT(1.0000001 2.0000002)'::geometry);
    extent    
--------------
 BOX(1 2,1 2)


This box doesn't contain the original point.

   Bernhard


-- 
Intevation GmbH                                 http://intevation.de/
Skencil                                           http://skencil.org/
Thuban                                  http://thuban.intevation.org/



More information about the postgis-users mailing list