[postgis-devel] [PostGIS] #595: [raster] Add a series of ST_SetValues functions

PostGIS trac at osgeo.org
Fri Jul 27 14:24:32 PDT 2012


#595: [raster] Add a series of ST_SetValues functions
---------------------+------------------------------------------------------
 Reporter:  pracine  |       Owner:  pracine      
     Type:  task     |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.0
Component:  raster   |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by dustymugs):

 Another variant to add allows setting many pixels at once based upon a one
 or two dimension array...

 The following would set the values for a pixel-line using the x, y
 coordinate as the left-most pixel to set.  If the number of elements in
 valset exceeds (width - x), the remaining values are discarded.

 {{{
 ST_SetValues(
         rast raster,
         nband integer,
         x integer,
         y integer,
         valset double precision[]
 ) -> raster
 }}}

 The following would set the values for an area using the x, y coordinate
 as the upper-left pixel to set.  Each inner array would be a pixel-line.
 If the number of elements in a inner array exceeds (width - x), the
 remaining values of that array are discarded.  The same is true for the
 outer array where the number of elements exceeds (height - y).

 {{{
 ST_SetValues(
         rast raster,
         nband integer,
         x integer,
         y integer,
         valset double precision[][]
 ) -> raster
 }}}

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