<!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>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=343301814-21022008>You 
can definitely output 24-bit pngs.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=343301814-21022008></SPAN></FONT>&nbsp;</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>&nbsp; 
appears to be a little out of date.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=343301814-21022008></SPAN></FONT>&nbsp;</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>&nbsp;</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.&nbsp; (Just like in mode=map).&nbsp; If MapServer is 
acting as a WMS client, it stores a copy of the incoming image in the tmp 
folder.&nbsp; 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>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=Arial>2 items-- may be interconnected???</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>I recently set up a WMS&nbsp;mapserver&nbsp;using 
  MS4W.&nbsp; 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>&nbsp;</DIV>
  <DIV><FONT face=Arial>During the setup phase, I was having the raster data 
  output as PNG files.&nbsp; Which looked awful.&nbsp; Which is because I was 
  used to seeing these aerial photos as 24 bit jpeg files.&nbsp;&nbsp; (the 
  documentation seems to indicate an 8-bit limit on png colors...?)</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>They would dutifully create a temporary png file in the 
  tmp folder.</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>Then,&nbsp; I changed my map file and my request URL to 
  indicate jpeg files, which works great.&nbsp; My observation is that my 
  mapserver is no longer storing temporary files. </FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</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 ;&gt;)&nbsp; 
  </FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>Seriously,&nbsp;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?&nbsp; Below is the "WEB" section of my .map 
  file...</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial>&nbsp; WEB<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;TEMPLATE "SD.html"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    IMAGEPATH "C:\ms4w\Apache\htdocs\tmp/"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# have 
    verified the correct 
    path!<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL 
    "/tmp/"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    # and it&nbsp;saved png&nbsp;tmp files to 
    it<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    "wms_title"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "WMS 
    McCOOK"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"wms_onlineresource"&nbsp; 
    "<A 
    href="http://206.183.188.202/cgi-bin/mapserv">http://206.183.188.202/cgi-bin/mapserv</A>?"<BR>&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    "wms_srs"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    "EPSG:26914 EPSG:26914"<BR>&nbsp;END</FONT></DIV></BLOCKQUOTE>
  <DIV><FONT face=Arial>&nbsp; END</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>Sincerely,</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</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&nbsp; 
  56349<BR>320.283.5684<BR>320.283.5247 h<BR>320.424.1299 
c</FONT></DIV></BLOCKQUOTE></BODY></HTML>