[postgis-devel] [PostGIS] #871: [raster] ST_AddBand documentation is inconsistent with function definitions and spec

PostGIS trac at osgeo.org
Wed Mar 23 10:13:51 PDT 2011


#871: [raster] ST_AddBand documentation is inconsistent with function definitions
and spec
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  pracine      
     Type:  defect          |      Status:  assigned     
 Priority:  medium          |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by pracine):

 So what do you prefer?:

 st_addband(torast raster, fromrast raster, fromband integer, toband
 integer);

 or

 st_addband(torast raster, toband integer, fromrast raster, fromband
 integer);

 I first planned the first version because toband is really an optional
 argument, but as robe mentionned it does not follow the convention that
 band number should follow the raster. I was happy with this exception
 since toband do not refer to an existing band and that it is really
 optionnal.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/871#comment:2>
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-devel mailing list