<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=343301814-21022008>Ken, 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=343301814-21022008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=343301814-21022008>You 
can definitely output 24-bit pngs.  </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=343301814-21022008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=343301814-21022008>The 
output format page at <A 
href="http://mapserver.gis.umn.edu/docs/reference/mapfile/outputformat">http://mapserver.gis.umn.edu/docs/reference/mapfile/outputformat</A>  
appears to be a little out of date.  </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=343301814-21022008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=343301814-21022008>If you 
are using MapServer 5.x, take a look at </SPAN></FONT><FONT face=Arial 
color=#0000ff size=2><A 
href="http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics">http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics</A></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=343301814-21022008><FONT face=Arial color=#0000ff size=2>About 
the temp files, I don't believe that you create temp files when MapServer is 
acting as a WMS server.  (Just like in mode=map).  If MapServer is 
acting as a WMS client, it stores a copy of the incoming image in the tmp 
folder.  Regardless, if the images aren't being stored in the directory 
that you have defined as IMAGEPATH, don't worry about images hiding in the 
cooling fins (or the Hello Kitty mouse pad...)</FONT></SPAN></DIV>
<DIV><SPAN class=343301814-21022008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=343301814-21022008><FONT face=Arial color=#0000ff 
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  mapserver-users-bounces@lists.osgeo.org 
  [mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Ken S. 
  Elvehjem<BR><B>Sent:</B> Wednesday, February 20, 2008 10:31 PM<BR><B>To:</B> 
  mapserver-users@lists.osgeo.org<BR><B>Subject:</B> [mapserver-users] temp 
  files<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial>Hi,</FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>2 items-- may be interconnected???</FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>I recently set up a WMS mapserver using 
  MS4W.  It works better than I have any right to expect, what with it 
  being my first real attempt; would have never gotten that far without help 
  from the list.</FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>During the setup phase, I was having the raster data 
  output as PNG files.  Which looked awful.  Which is because I was 
  used to seeing these aerial photos as 24 bit jpeg files.   (the 
  documentation seems to indicate an 8-bit limit on png colors...?)</FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>They would dutifully create a temporary png file in the 
  tmp folder.</FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>Then,  I changed my map file and my request URL to 
  indicate jpeg files, which works great.  My observation is that my 
  mapserver is no longer storing temporary files. </FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>This also is good news -- because I don't have to delete 
  them -- but I am a little worried that they are building up somewhere else -- 
  like in the cooling fins on my cpu, or in my power supply ;>)  
  </FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>Seriously, can someone explain about the apparent 
  8-bit limit in png files (is it true, will it change, etc.) and suggest where 
  the temp files are going?  Below is the "WEB" section of my .map 
  file...</FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial>  WEB<BR>       
     TEMPLATE "SD.html"<BR>         
    IMAGEPATH "C:\ms4w\Apache\htdocs\tmp/"     # have 
    verified the correct 
    path!<BR>         IMAGEURL 
    "/tmp/"            
                    
                    
    # and it saved png tmp files to 
    it<BR> <BR>         
    METADATA<BR>              
    "wms_title"           "WMS 
    McCOOK"<BR>              "wms_onlineresource"  
    "<A 
    href="http://206.183.188.202/cgi-bin/mapserv">http://206.183.188.202/cgi-bin/mapserv</A>?"<BR>  
                
    "wms_srs"             
    "EPSG:26914 EPSG:26914"<BR> END</FONT></DIV></BLOCKQUOTE>
  <DIV><FONT face=Arial>  END</FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>Sincerely,</FONT></DIV>
  <DIV><FONT face=Arial></FONT> </DIV>
  <DIV><FONT face=Arial>Ken<BR>Ken S. Elvehjem<BR>ELVEHJEM TECHNICAL 
  SUPPORT<BR>250 Drury Ave<BR>PO Box 37<BR>Lowry MN  
  56349<BR>320.283.5684<BR>320.283.5247 h<BR>320.424.1299 
c</FONT></DIV></BLOCKQUOTE></BODY></HTML>