<div dir="ltr"><div><div><div>Hi,<br><br></div>After send the email I have find the explanation.<br></div>The solution was to set the <br></div><div>black --> white<br></div><div>to<br></div><div>black  --> near to white (but don't white)<br>
<br></div><div>Sorry for noise.<br><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/29 Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br>I have a black/white dataset with many rasters.<br>I will use all of them with a catalog and set usually the white as transparency to see all as it was an unique raster.<br>

<br></div>Now I have the nee to serve it also with changing the black to white.<br></div><div>But I need to distinguish between the real white that should still be transparency and the white caming from black original pixel that should not be transparency.<br>

<br></div><div>To allow this I'm try-ing to change<br>the white to grey<br>and<br>black to white<br></div><div>and also I try to set the transparency to the grey color.</div><br></div>This is what I have do in the mapfile:<br>

<br>    TYPE raster<br>    TILEINDEX '/path-to-catalog/index_tiled'<br>    PROCESSING "BANDS=1"<br>    PROCESSING "NODATA=255"<br>    METADATA<br>      ....<br>    END<br>    OFFSITE 164 164 164<br>

    OPACITY 100<br>    CLASSITEM "[pixel]"<br>    CLASS<br>      EXPRESSION ([pixel] = 0)<br>      STYLE<br>        COLOR 164 164 164<br>      END<br>    END<br>    CLASS<br>      EXPRESSION ([pixel] = 1)<br>      STYLE<br>

        COLOR 255 255 255<br>      END<br>    END<br><br><br></div>I set the offsite to the 164 164 164 but it don't seem to understand or use it.<br></div>It seem using always the white original color.<br><br></div>
Any hint is welncome,<br>
<br></div>thx,<span class="HOEnZb"><font color="#888888"><br><div><br><br><div><div><div><div><div><div><div><div><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>

</div></div></div></div></div></div></div></div></div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div>