[postgis-devel] [PostGIS] #1245: [raster] ST_AddMultiBand that can add multiple bands to an existing raster

PostGIS trac at osgeo.org
Mon Oct 17 08:57:53 PDT 2011


#1245: [raster] ST_AddMultiBand that can add multiple bands to an existing raster
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  pracine              
     Type:  enhancement     |      Status:  new                  
 Priority:  medium          |   Milestone:  PostGIS Raster Future
Component:  postgis raster  |     Version:  trunk                
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by robe):

 I was thinking along the lines of lets say I have a 2 band raster I
 created with same dimensions, srid etc. of an existing and I want to add 3
 more bands to this raster from an existing.  ST_Band works great if I want
 a subset of a raster but doesn't allow me to create a superset.

 In current model, I'd have to do
 ST_AddBand(ST_AddBand(newrast,ST_Band(oldrast,1)),ST_Band(oldrast,2))
 etc.

 Which seems silly considering we already have an ST_Band that can take an
 array of band numbers and return me a multi band unless that is what this
 is for:

 raster ST_AddBand(raster torast, raster fromrast);

 But come to think of it, not sure why that one is there if it just returns
 band 1 of fromrast.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1245#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