[postgis-devel] [PostGIS] #1364: [raster] Make ST_Union a c-implementation and also handle multiple bands

PostGIS trac at osgeo.org
Sat Dec 10 02:38:57 PST 2011


#1364: [raster] Make ST_Union a c-implementation and also handle multiple bands
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  pracine              
     Type:  task            |      Status:  new                  
 Priority:  medium          |   Milestone:  PostGIS Raster Future
Component:  postgis raster  |     Version:  trunk                
 Keywords:                  |  
----------------------------+-----------------------------------------------
 Bborie,

 Just putting this on the list before I forget to.  I'm still revising
 Pierre's code to get rid or the rasterexp and the infinite number of state
 functions.  I'm almost done but doing some spot checking  to make sure my
 revised looks right.

 Hopefully that will make it easier to rewrite when the time comes since
 there won't be quite so many moving parts.

 I was tempted to make it multiband supportable, as now I have to write
 stupid code like this to reconstitute my chopped pictures
 and which was even more painful without the array ST_AddBand construct.


 {{{
 SELECT ST_AddBand(NULL,
 ARRAY[ST_Union(ST_Band(rast,1))
     , ST_Union(ST_Band(rast,2))
     , ST_Union(ST_Band(rast,3)) ] )
 FROM samples.downtown_chunked
 }}}

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