[postgis-tickets] [PostGIS] #2341: [raster] ST_MapAlgebra mask parameter

PostGIS trac at osgeo.org
Thu May 30 10:48:56 PDT 2013


#2341: [raster] ST_MapAlgebra  mask parameter
-------------------------+--------------------------------------------------
 Reporter:  nclay        |       Owner:  dustymugs    
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 2.2.0
Component:  raster       |     Version:  trunk        
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by dustymugs):

 You will need an array for mask NODATA.

 In your code snippet, if mask is of type double, don't ever evaluate
 like...

 {{{
 mask[_y][_x] == 0
 }}}

 Instead use...

 {{{
 FLT_EQ(mask[_y][_x], 0)
 }}

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