<div dir="ltr">You are not supposed to change the expression values rast1.val and rast2.val to maxrast.val and minrast.val. The placeholders rast1.val and rast2.val are to be used AS-IS.<br><div class="gmail_extra"><br>As for the error, the error is correct. You're trying to pass the value "INTERSECTION" for the pixeltype parameter...</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://postgis.net/docs/manual-2.0/RT_ST_MapAlgebraExpr2.html">http://postgis.net/docs/manual-2.0/RT_ST_MapAlgebraExpr2.html</a></div><div class="gmail_extra">

<br></div><div class="gmail_extra">-bborie<br><br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 4:27 AM,  <span dir="ltr"><<a href="mailto:g.singh@utwente.nl" target="_blank">g.singh@utwente.nl</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Thanks Bborie Park,<br>
<br>
Can you please tell me what should I use for rast1.val and rast2.val. I am asking this because when I used '[maxrast.val] * [minrast.val]' I get erroras under:<br>
ERROR:  RASTER_mapAlgebra2: Invalid pixel type: INTERSECTION<br>
<br>
********** Error **********<br>
<br>
ERROR: RASTER_mapAlgebra2: Invalid pixel type: INTERSECTION<br>
SQL state: XX000<br>
<br>
<br>
The function in the query looks like as below:<br>
<br>
st_MapAlgebraExpr(a.maxrast,b.minrast, '[maxrast.val] * [minrast.val]' , 'INTERSECTION', 'NULL', 'NULL', 'NULL') as rast<br>
<br>
<br>
thanks<br>
gaurav<br>
<br></blockquote></div></div></div>