<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2">
<TITLE>color palettes</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Courier New">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">i noticed that mapserver generate a fix color palette for raster data requests whatever the color palette from the original raster datas says. So i want to influence the color palette of the response picture</FONT><FONT SIZE=2 FACE="Courier New">. I try to instruct the GDAL reader to apply a custom LUT (lookup table).</FONT> <FONT SIZE=2 FACE="Courier New">I have read (</FONT><A HREF="http://mapserver.gis.umn.edu/docs/howto/raster_data/#special-processing-directives"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">http://mapserver.gis.umn.edu/docs/howto/raster_data/#special-processing-directives</FONT></U></A><FONT SIZE=2 FACE="Courier New">) that one can achieve this with following entry:</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">&lt;lut_spec&gt; = &lt;in_value&gt;:&lt;out_value&gt;[,&lt;in_value&gt;:&lt;out_value&gt;]*</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">I tried it (</FONT><FONT SIZE=2 FACE="Courier">inline specified</FONT><FONT SIZE=2 FACE="Courier New">):</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">&nbsp; LAYER</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; NAME&nbsp; test</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; PROCESSING &quot;LUT=2:74&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp; RASTER</FONT>
<BR><FONT SIZE=2 FACE="Courier New">...</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">&nbsp; END #layer</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Courier New">Another trying was this:</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">&nbsp;OUTPUTFORMAT</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; NAME png</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; DRIVER &quot;GD/PNG&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; EXTENSION &quot;png&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; FORMATOPTION &quot;LUT=2:74&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp;END</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">But there is not any effect. What am i doing wrong?</FONT>
<BR>
<BR><FONT SIZE=2 FACE="Courier New">Regards<BR>
Markus Weißmann</FONT>
</P>

</BODY>
</HTML>