[postgis-devel] [PostGIS] #1268: [raster] ST_MapAlgebraExpr for 2 rasters

PostGIS trac at osgeo.org
Mon Nov 7 10:42:58 PST 2011


#1268: [raster] ST_MapAlgebraExpr for 2 rasters
----------------------------+-----------------------------------------------
 Reporter:  dustymugs       |       Owner:  dustymugs    
     Type:  task            |      Status:  assigned     
 Priority:  medium          |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by dustymugs):

 Replying to [comment:2 bnordgren]:
 > I notice that the expression defaults to null. What does that mean?
 "rast1+rast2"? I think it may make more sense to say "expression text NOT
 NULL".
 >

 I set "expression" to default to NULL as we don't want to make any
 assumptions for the end user.  Setting the "expression" to "rast1 + rast2"
 is no better to me than using "1" or "255" as the function doesn't know
 what the user wants.  So, NULL is the default, which means for two pixels
 of the same coordinates the output pixel's value will be set to NODATA.

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