[postgis-users] function xmin(geometry) is not unique

Markus Schaber schabi at logix-tt.com
Fri Mar 4 01:21:50 PST 2005


Hi, strk,

strk at refractions.net schrieb:

> We have two implicit casts:
> 	geometry->box2d
> 	geometry->box3d
> The xmin() is defined for both...
> A solution could be to drop the IMPLICIT geometry->box3d one...

This could break old code relying on this behaviour. I could think of
two workarounds:

- additionally create an autocast box3d->box2d (which may break other
things)

- create xmin(geometry) that calls xmin(geom::box2d) internally

markus

-- 
Markus Schaber | Dipl. Informatiker | Software Development GIS

Fight against software patents in EU! http://ffii.org/
                                      http://nosoftwarepatents.org/



More information about the postgis-users mailing list