ok. got it. You inverted pixeltype and expression... expression goes first.
Pierre > -----Original Message----- > From: postgis-users-boun...@postgis.refractions.net [mailto:postgis-users- > boun...@postgis.refractions.net] On Behalf Of DavidRA > Sent: Wednesday, February 29, 2012 7:37 AM > To: postgis-users@postgis.refractions.net > Subject: Re: [postgis-users] Problem using ST_MapAlgebraExpr (II) > > Hi again, when developing other functions I encountered a new problem with > the 2 raster band version of ST_MapAlgebraExpr(). First of all, this is the > function (it calculates the ordered weighted average out of two rasters): > > > > > Then, I try to execute it like this: > > > > but I get this error: > > > > Invalid pixel type? I'm using the same maps than before and the structure of > the function is quite similar... but I didn't get this error with the > normalize function nor others. > > -- > View this message in context: http://postgis.17.n6.nabble.com/Problem-using- > ST-MapAlgebraExpr-II-tp4514561p4531261.html > Sent from the PostGIS - User mailing list archive at Nabble.com. > _______________________________________________ > postgis-users mailing list > postgis-users@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users