[postgis-devel] RC5 problem

Carl Anderson carl.anderson at vadose.org
Sat Mar 26 08:34:16 PST 2005


not sure when this came up,  I did not try other recent RC's

select xmin(<geometry>);    
is confused by the parallel IMPLICIT casts from geometry to BOX2d and BOX3d
and the existence of
    xmin(box2d)
and
   xmin(box3d)

additional IMPLICIT casts
    box2d(box3d)
    box3d(box2d)
  
the IMPLICIT casts seem potentially circular,  wherein it might become 
impossible to
clearly understand what chain of casts occurred and in what order.

select xmin(geometry('POINT(0 0)'));
select xmin('POINT(0 0)'::geometry);
   ERROR:  function xmin(geometry) is not unique
   HINT:  Could not choose a best candidate function. You may need to 
add explicit type casts.


these are ok
select xmin('POINT(0 0)'::geometry::box2d);  
select xmin('POINT(0 0)'::geometry::box3d); 
select xmin('POINT(0 0)'::geometry::box3d::box2d);
select xmin('POINT(0 0)'::geometry::box2d::box3d);

C.







More information about the postgis-devel mailing list