[postgis-devel] [PostGIS] #1119: [raster] Modify ST_Mapalgebra so that the expression can refer to any band

PostGIS trac at osgeo.org
Mon Jul 11 12:08:00 PDT 2011


#1119: [raster] Modify ST_Mapalgebra so that the expression can refer to any band
----------------------------+-----------------------------------------------
 Reporter:  pracine         |       Owner:  pracine              
     Type:  enhancement     |      Status:  new                  
 Priority:  low             |   Milestone:  PostGIS Raster Future
Component:  postgis raster  |     Version:  trunk                
 Keywords:                  |  
----------------------------+-----------------------------------------------
Description changed by pracine:

Old description:

> This could be useful for:
>
> -Writing expressions (like 'average') involving any band of the raster
>
> -Refer to weighted information created by ST_AsRaster() (the length or
> the area of the geometry intersecting with the pixel

New description:

 This could be useful for:

 -Writing expressions (like 'average') involving any band of the raster

 -Refer to weighted information created by ST_AsRaster() (the length or the
 area of the geometry intersecting with the pixel

 In the one raster version of MapAlgebra one could refer to the second band
 like this: 'rast[2]'.

 In the two rasters version of MapAlgebra one could refer to the second
 band like this: 'rast1[2] + rast2[2]'.

 'rast', 'rast1' and 'rast2' should by default refer to the value of the
 first band.

 This change means that we MUST remove the function's band parameters since
 they are not useful anymore.

--

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