<div>I had a similar problem when I first started using mapserver with USGS rasters, when I started using gdaltindex to create a index, they started displaying normally. Here is the layer I use for some imagery I downloaded from USGS and gdaltindex'd.
</div>
<div> </div>
<div>LAYER <br> name tucson_arial_1<br> group "Arial"<br> type raster<br> TILEINDEX "../../graphics/tucson_arial_index.shp"<br> TILEITEM "location"<br> status off<br> METADATA
<br> "wms_title" "Tucson Arial Photos"<br> "wms_srs" "EPSG:4326"<br> "wms_abstract" "Obtained from the USGS, Image from August-October 2002,0.3 Meters,UTM, Color"
<br> END<br> END</div>
<div> </div>
<div>Good Luck,</div>
<div> </div>
<div>Matt<br><br> </div>
<div><span class="gmail_quote">On 10/20/05, <b class="gmail_sendername">Chip Taylor</b> <<a href="mailto:work@xwb.com">work@xwb.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<p align="left"><span lang="en-us"><font face="Arial" size="2">I downloaded some landsat raster images from the USGS site for use in a mapserver application. In ArcMap the colors are fine. Here is the layer I have in MapServer:
</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2">LAYER</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2"> NAME "</font></span><span lang="en-us"></span><span lang="en-us"><font face="Arial" size="2">landcover</font></span><span lang="en-us"></span><span lang="en-us">
<font face="Arial" size="2">"</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2"> DATA "</font></span><span lang="en-us"></span><span lang="en-us"><font face="Arial" size="2">cover</font></span><span lang="en-us"></span><span lang="en-us">
<font face="Arial" size="2">/81802474/81802474.tif"</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2"> STATUS on</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2"> TYPE RASTER</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2"> PROCESSING "BANDS=3" </font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2"> PROCESSING "DITHER=YES"</font></span><span lang="en-us"></span><span lang="en-us"></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2">END</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2">The layer comes out grayscaled on the map. If I include a classitem as described in the</font></span><span lang="en-us"></span><span lang="en-us"> <font face="Arial" size="2">
"</font></span><span lang="en-us"></span><span lang="en-us"><font face="Arial" size="2">Raster- HowTo</font></span><span lang="en-us"></span><span lang="en-us"><font face="Arial" size="2">"</font></span><span lang="en-us">
</span><span lang="en-us"><font face="Arial" size="2"> document like this:</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2">CLASSITEM "[pixel]"</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> # class using simple string comparison, equivelent to ([pixel] = 0)</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> CLASS</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> EXPRESSION "0"</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> COLOR 0 0 0</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> END</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> # class using an EXPRESSION using only [pixel]. </font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> CLASS</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> EXPRESSION ([pixel] >= 64 AND [pixel] < 128)</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> COLOR 255 0 0 </font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> END</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> # class using the red/green/blue values from the palette</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> CLASS</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> NAME "near white"</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> EXPRESSION ([red] > 200 AND [green] > 200 AND [blue] > 200)</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> COLOR 0 255 0 </font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> END</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> # Class using a regular expression to capture only pixel values ending in 1</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> CLASS</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> EXPRESSION /*1/</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> COLOR 0 0 255</font></span></p>
<p align="left"><span lang="en-us"><font face="Courier New" color="#000000" size="2"> END</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2">Then I get a bunch of red, green, and blue pixels.</font></span></p>
<p align="left"><span lang="en-us"><font face="Arial" size="2">What</font></span><span lang="en-us"></span><span lang="en-us"><font face="Arial" size="2">'</font></span><span lang="en-us"></span><span lang="en-us"><font face="Arial" size="2">
s the secret to displaying these raster files in their true colors?</font></span><span lang="en-us"></span><span lang="en-us"></span></p><span class="sg">
<p align="left"><span lang="en-us">Chip Taylor</span></p>
<p align="left"><span lang="en-us">Prepared Response, Inc</span></p></span></blockquote></div><br>