[postgis-tickets] [PostGIS] #2802: [raster] ST_MapAlgebra checks callbacks parameters but not return type

PostGIS trac at osgeo.org
Thu Jul 3 03:02:46 PDT 2014


#2802: [raster] ST_MapAlgebra checks callbacks parameters but not return type
-------------------------+--------------------------------------------------
 Reporter:  strk         |       Owner:  dustymugs
     Type:  enhancement  |      Status:  new      
 Priority:  medium       |   Milestone:           
Component:  raster       |     Version:  trunk    
 Keywords:               |  
-------------------------+--------------------------------------------------
 I tried using a callback only accepting 2 arguments and ST_MapAlgebra
 complained about that. But it did not complain about the callback
 returning an integer rather than a float8.

 As the C code fetches the return value in binary form, I guess returning
 anything but "float8" would just not work, silently.

 If this is confirmed, it would be nice for ST_MapAlgebra to also check the
 return type of the provided callback.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2802>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list