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.

As for the error, the error is correct. You're trying to pass the value
"INTERSECTION" for the pixeltype parameter...

http://postgis.net/docs/manual-2.0/RT_ST_MapAlgebraExpr2.html

-bborie


On Fri, Sep 13, 2013 at 4:27 AM, <[email protected]> wrote:

> Thanks Bborie Park,
>
> 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:
> ERROR:  RASTER_mapAlgebra2: Invalid pixel type: INTERSECTION
>
> ********** Error **********
>
> ERROR: RASTER_mapAlgebra2: Invalid pixel type: INTERSECTION
> SQL state: XX000
>
>
> The function in the query looks like as below:
>
> st_MapAlgebraExpr(a.maxrast,b.minrast, '[maxrast.val] * [minrast.val]' ,
> 'INTERSECTION', 'NULL', 'NULL', 'NULL') as rast
>
>
> thanks
> gaurav
>
>
_______________________________________________
postgis-users mailing list
[email protected]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users

Reply via email to