[postgis-tickets] [PostGIS] #2325: [raster]: ST_SetBandNoDataValue support setting multiple bands

PostGIS trac at osgeo.org
Mon May 13 06:48:20 PDT 2013


#2325: [raster]: ST_SetBandNoDataValue support setting multiple bands
-------------------------+--------------------------------------------------
 Reporter:  robe         |       Owner:  dustymugs    
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 2.2.0
Component:  raster       |     Version:  trunk        
 Keywords:               |  
-------------------------+--------------------------------------------------
 I find myself doing stuff like this:

 st_setbandnodatavalue(st_setbandnodatavalue(rast,1,0),2,0) etc.

 I feel like I've mentioned this before so this may be a dupe though I
 can't find it.

 Not only is it slow because of the memcopy commands, but its pretty ugly
 to look at.

 ideally:

 ST_SetBandNoDataValue(rast,'{1,2,3}'::int[],'{0,0,0}'::int[] );

 would have been even nicer if the rast,nodatavalue  version just set all
 the bands to whatever value is passed in, but I guess that would be
 changing the semantics so maybe a nono - though we did it already with
 ST_Union :)

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