[postgis-devel] [PostGIS] #1639: [raster] MapAlgebraExpr can't handle conditions

PostGIS trac at osgeo.org
Fri Mar 2 00:44:53 PST 2012


#1639: [raster] MapAlgebraExpr can't handle conditions
---------------------+------------------------------------------------------
 Reporter:  nicklas  |       Owner:  pracine      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.0.0
Component:  raster   |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by nicklas):

 I don't think it is working. The output is wrong, at least from my box.

 I get true in all cases or false in all cases.

 I also get the same result if I send the result to '8BUI' pixeltype so the
 problem seems to be in the expression not the cast to boolean.

 What casts is actually happening? Why do you cast to integer in your
 example when the result from the expression is boolean and the result
 pixeltype is boolean. The error-message if I don't do that cast is that it
 can't be casted to double precision.

 Can it be all those casts that is making things bogus after all?

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