Hi, <div><br></div><div>are you sure your raster can be read by mapserver cgi? Maybe try adding the ON_MISSING_DATA config option at map file level to rule out this error: CONFIG "ON_MISSING_DATA" "FAIL"</div>
<div>Also, I think IMAGEMODE is a parameter of the outputformat object not the layer object.</div><div><br></div><div>Cheers, Michael</div><div><br><br><div class="gmail_quote">2010/12/8 David Hildebrand <span dir="ltr"><<a href="mailto:David.Hildebrand@afsc.ca">David.Hildebrand@afsc.ca</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div lang="EN-US" link="blue" vlink="blue">

<div>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I have a TIFF image I want to display.  The
image is a 3-band 8-bit image.  The server logs show no error but my display is
coming out blank.  I am using ms4w with GDAL support so I’m not sure what is
going wrong here.  A sample of the mapfile is shown below.  I get a parsing error
if I include IMAGEMODE “RGB” in the layer definition.  Any suggestions?</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">LAYER</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  NAME
"awifs"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  PROCESSING
"BANDS=3,2,1"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  PROCESSING
"SCALE=AUTO"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  METADATA</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">   
"wms_title" "awifs"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">   
"wms_opaque" "1"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">   
"ows_resolution" "56 56"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">   
"wms_srs" "EPSG:43001"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">   
"wms_extent" "-701344.000 -417256.000 803040.000
711368.000"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">   
"wcs_srs" "EPSG:43001"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">   
"wcs_extent" "-701344.000 -417256.000 803040.000
711368.000"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  END</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  STATUS on </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  TYPE raster</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  DATA
"//Plcoressatsb01/AWiFS/initial_delivery/images/July.tif"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  PROJECTION</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">   
"init=epsg:43001"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  END</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  EXTENT
-701344.000 -417256.000 803040.000 711368.000</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">  UNITS meters</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">END</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<div>

<p><font size="2" color="navy" face="Times New Roman"><span style="font-size:10.0pt;color:navy">===========================<br>
David V. Hildebrand<br>
Agriculture Financial Services Corporation<br>
(403) 782-8239   <br>
<br>
</span></font><font color="navy"><span style="color:navy"><a><font size="2"><span style="font-size:10.0pt">www.afsc.ca</span></font></a></span></font><u><font size="2" color="navy"><span style="font-size:10.0pt;color:navy"> <</span></font></u><font color="navy"><span style="color:navy"><a href="http://www.afsc.ca/" target="_blank"><font size="2"><span style="font-size:10.0pt">http://www.afsc.ca</span></font></a></span></font><u><font size="2" color="navy"><span style="font-size:10.0pt;color:navy">><br>

</span></font></u><font size="2" color="navy"><span style="font-size:10.0pt;color:navy">This communication is intended for the use of the recipient to
which it is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication, and do
not copy, distribute, or take action relying on it. Any communication received
in error, or subsequent reply, should be deleted or destroyed. Please consider
the environment before printing this email.</span></font><font size="2"><span style="font-size:10.0pt"></span></font></p>

</div>

<div>

<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> Brent Wood
[mailto:<a href="mailto:pcreso@yahoo.com" target="_blank">pcreso@yahoo.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Monday, December 06, 2010
4:37 PM<br>
<b><span style="font-weight:bold">To:</span></b> David Hildebrand; Brent Fraser<br>
<b><span style="font-weight:bold">Cc:</span></b>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [mapserver-users]
street maps</span></font></p>

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

<table border="0" cellspacing="0" cellpadding="0">
 <tbody><tr>
  <td valign="top" style="padding:0in 0in 0in 0in">
  <p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
  Sigh,<br>
  <br>
  Get the link right!!<br>
  <br>
  PDF summarising Bing/Google licelice issues<br>
  <br>
  <a href="http://victorianspatialcouncil.org/cms/library/attachments/VSC%20Guidance%20Note%201_T&C%20Use%20of%20%20Google%20Maps%20and%20Bing%20Maps%20v1.0-May%202010.pdf" target="_blank">http://victorianspatialcouncil.org/cms/library/attachments/VSC%20Guidance%20Note%201_T&C%20Use%20of%20%20Google%20Maps%20and%20Bing%20Maps%20v1.0-May%202010.pdf</a><br>

  <br>
  <br>
  Brent Wood<br>
  <br>
  --- On <b><span style="font-weight:bold">Tue, 12/7/10, Brent Fraser <i><span style="font-style:italic"><<a href="mailto:bfraser@geoanalytic.com" target="_blank">bfraser@geoanalytic.com</a>></span></i></span></b>
  wrote:</span></font></p>
  <p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
  From: Brent Fraser <<a href="mailto:bfraser@geoanalytic.com" target="_blank">bfraser@geoanalytic.com</a>><br>
  Subject: Re: [mapserver-users] street maps<br>
  To: "David Hildebrand" <<a href="mailto:David.Hildebrand@afsc.ca" target="_blank">David.Hildebrand@afsc.ca</a>><br>
  Cc: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
  Date: Tuesday, December 7, 2010, 10:02 AM</span></font></p>
  <div>
  <p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">David,<br>
  <br>
    This thread may get you started with OpenStreetMap.  Be sure to
  read Google's and Bing's Term Of Service.<br>
  <br>
  <a href="http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html" target="_blank">http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html</a></span></font></p>
  <pre><font size="2" face="Courier New"><span style="font-size:10.0pt">Best Regards,<br>
Brent Fraser</span></font></pre>
  <p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
  On 12/6/2010 12:18 PM, David Hildebrand wrote: </span></font></p>
  <div>
  <p><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I want to add a street
  map (OpenStreetMap, Google, Bing, etc.) as a WMS layer but I’m not sure which
  service to use and what the URL would be to try them out?  My AOI is
  only about 10 by 10 degrees wide.</span></font></p>
  <p><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>
  <p><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Any suggestions?</span></font></p>
  <p><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>
  <div>
  <p><font size="2" color="navy" face="Times New Roman"><span style="font-size:10.0pt;color:navy">===========================<br>
  David V. Hildebrand<br>
  Agriculture Financial Services Corporation<br>
  (403) 782-8239   <br>
  <br>
  <a href="http://www.afsc.ca" target="_blank">www.afsc.ca</a><u> <</u></span></font><font color="navy"><span style="color:navy"><a href="http://www.afsc.ca/" target="_blank"><font size="2"><span style="font-size:10.0pt">http://www.afsc.ca</span></font></a></span></font><u><font size="2" color="navy"><span style="font-size:10.0pt;color:navy">><br>

  </span></font></u><font size="2" color="navy"><span style="font-size:10.0pt;color:navy">This communication is intended for the use of the recipient to
  which it is addressed, and may contain confidential, personal and/or
  privileged information. Please contact Agriculture Financial Services
  Corporation immediately if you are not the intended recipient of this
  communication, and do not copy, distribute, or take action relying on it. Any
  communication received in error, or subsequent reply, should be deleted or
  destroyed. Please consider the environment before printing this email.</span></font></p>
  </div>
  <div>
  <p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
  </div>
  <div>
  <p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
  </div>
  </div>
  <pre><fieldset></fieldset><font size="2" face="Courier New"><span style="font-size:10.0pt"><br>
_______________________________________________<br>
mapserver-users mailing list<br>
  <a href="http://mc/compose?to=mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
  <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span></font></pre></div>
  <p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
  -----Inline Attachment Follows-----</span></font></p>
  <div>
  <p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">_______________________________________________<br>
  mapserver-users mailing list<br>
  <a href="http://mc/compose?to=mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
  <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span></font></p>
  </div>
  </td>
 </tr>
</tbody></table>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

</div>

</div>


<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------------<br>Michael Schulz<br><a href="mailto:mschulz@webgis.de" target="_blank">mschulz@webgis.de</a><br><br>in medias res<br>
Gesellschaft für Informationstechnologie mbH<br><br>Schwimmbadstraße 2<br>D-79100  Freiburg i. Br.<br><br>Tel:  +49 (0)761 705798-102<br>Tel:  +49 (0)761 705798-0<br>Fax: +49 (0)761 705798-09<br><br><a href="http://www.webgis.de" target="_blank">http://www.webgis.de</a> / <a href="http://www.zopecms.de" target="_blank">http://www.zopecms.de</a><br>
--------------------------------------------------------------<br>Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck<br>Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg<br><br>
</div>