[postgis-users] Problem with ST_MapAlgebraExpr
Bborie Park
dustymugs at gmail.com
Fri Sep 13 05:08:51 PDT 2013
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, <g.singh at utwente.nl> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20130913/f1a2cbda/attachment.html>
More information about the postgis-users
mailing list