[postgis-devel] [PostGIS] #223: Breaking change ST_Extent returns a box3d_extent object

PostGIS trac at osgeo.org
Tue Jul 14 14:48:18 PDT 2009


#223: Breaking change ST_Extent returns a box3d_extent object
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  postgis 1.4.0
Component:  postgis  |     Version:               
 Keywords:           |  
---------------------+------------------------------------------------------
 I've been testing 1.4 on some  production apps for the past couple of days
 and ran into one breaking change.

 Since our ST_Extent now returns a box3d_extent, this broke one of my
 custom functions that was expecting a box2d

 To fix, I had to make a change to my app to accept box3d instead of box2d
 in the function call, but I also had to put in an auto cast

 CREATE CAST (box3d_extent AS box3d)
   WITH FUNCTION st_box3d_extent(box3d_extent)
   AS IMPLICIT;


 While this is not a bug, it is something that is likely to break some
 applications.  So I presume we should make note of it in the release
 notes.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/223>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list