[mapserver-users] Transform from black/white to white/gray

Andrea Peri aperi2007 at gmail.com
Sat Jul 27 05:34:53 PDT 2013


Hi,

I resolve using another solution:

I define 2 class. In every class I filter the pixel with expression and
render white as grey and black as white.

Regards,

Andrea.



2013/7/26 Andrea Peri <aperi2007 at gmail.com>

> Hi,
>
> I have a raster set of rasters tiff4 black/white.
> Usually I server them using mapserver wms in back/white.
>
> But now I need to server them also in white/gray to allow overlaps them on
> other rasters.
>
> So I need to change the black in white and the white in gray.
>
> I try to use the
> processing LUT command to obtain this transformation.
>
> I try with this command set:
>
>     PROCESSING "SCALE_1=1,255"
>     PROCESSING "BANDS=1"
>     PROCESSING "LUT=0:64,1:0"
>
> But it don't seem work. Seem instead that all the raster become all white.
> I guess the problem is that the original raster is tiff4 (2 color only).
> Is capable the processing command to transform it in a single band with
> 255 levels ?
>
> Thx,
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130727/7c13fff9/attachment.html>


More information about the mapserver-users mailing list