[postgis-users] ST_MapAlgebraExpr nodata value

Jose Carlos Martinez jomarlla at cgf.upv.es
Thu Mar 22 06:23:49 PDT 2012


Thanks for the answer Pierre, now its clear for me.

On 22/03/2012 14:17, Pierre Racine wrote:
>> I understand that the nodataval in ST_MapAlgebraExpr burns the pixels which
>> have nodata from the input raster with a new value but my question is:
>>
>> The expected behaviour is that ST_MapAlgebraExpr keeps the nodataval from
>> the input raster even though I change the nodataval parameter?
> Right. It will change all the nodata values to another values but it will not set this nodata value as the nodata value of the raster. You have to explicitly do it by doing:
>
> ST_SetBandNodataValue(ST_MapAlgebraExpr(..., 255), 255)
>
>> Im using ST_SetNodataValue after ST_MapAlgebraExp but I dont know if this is
>> the right procedure.
> SetBandNodataValue. Yes it is the right procedure.
>
> Pierre
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list