<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3603" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=321490809-17112009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=321490809-17112009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=321490809-17112009>I am serving mostly aerial images and I have not 
bothered to learn a lot about outputformats.&nbsp; We are&nbsp;using standard 
jpeg or 24-bit png formats.&nbsp; Rendering from vector data 
would&nbsp;be&nbsp;much more challenging, especially if band width should be 
kept low but quality high.&nbsp; This is giving best quality and most network 
traffic with aerials:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=321490809-17112009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=321490809-17112009>&nbsp;OUTPUTFORMAT<BR>&nbsp;&nbsp;&nbsp; NAME 
"png24"<BR>&nbsp;&nbsp;&nbsp; MIMETYPE "image/png24"<BR>&nbsp;&nbsp;&nbsp; 
DRIVER "GD/PNG"<BR>&nbsp;&nbsp;&nbsp; EXTENSION "png"<BR>&nbsp;&nbsp;&nbsp; 
IMAGEMODE RGB<BR>&nbsp;&nbsp;&nbsp; TRANSPARENT FALSE<BR>&nbsp; 
END</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=321490809-17112009></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>-<SPAN 
class=321490809-17112009>Jukka-</SPAN></FONT></FONT></FONT><BR></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>Lähettäjä:</B> 王连波 [mailto:happyforev1@gmail.com] 
  <BR><B>Lähetetty:</B> 17. marraskuuta 2009 11:07<BR><B>Vastaanottaja:</B> 
  Rahkonen Jukka<BR><B>Kopio:</B> mapserver-users<BR><B>Aihe:</B> Re: 
  [mapserver-users] outputformat problem in mapfile<BR></FONT><BR></DIV>
  <DIV></DIV>Hi, Jukka<BR>Thank you for your reply, first.<BR>However, if I use 
  other format, how can I make the displayed picture clearer, is not there a 
  win-win way ?<BR><BR>
  <DIV class=gmail_quote>On Tue, Nov 17, 2009 at 4:39 PM, Rahkonen Jukka <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</A>&gt;</SPAN> 
  wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN>Hi,</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN></SPAN></FONT>&nbsp;</DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>Jpeg 
    problem is due to format itself, jpeg cannot be transparent so it will not 
    work in the way you want.</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN></SPAN></FONT>&nbsp;</DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>-Jukka 
    Rahkonen-</SPAN></FONT></DIV><BR>
    <BLOCKQUOTE 
    style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
      <DIV lang=fi dir=ltr align=left>
      <HR>
      <FONT face=Tahoma size=2><B>Lähettäjä:</B> <A 
      href="mailto:mapserver-users-bounces@lists.osgeo.org" 
      target=_blank>mapserver-users-bounces@lists.osgeo.org</A> [mailto:<A 
      href="mailto:mapserver-users-bounces@lists.osgeo.org" 
      target=_blank>mapserver-users-bounces@lists.osgeo.org</A>] <B>Puolesta 
      </B>???<BR><B>Lähetetty:</B> 17. marraskuuta 2009 
      10:15<BR><B>Vastaanottaja:</B> mapserver-users<BR><B>Aihe:</B> 
      [mapserver-users] outputformat problem in mapfile<BR></FONT><BR></DIV>
      <DIV>
      <DIV></DIV>
      <DIV class=h5>
      <DIV></DIV>hello all,<BR>I want to display a raster JPEG picture (about 
      100M) in ka-map through mapserver. However, when I set the outputformat to 
      PNG or GIF in the mapfile, it looks ugly when zoomed out. It is a little 
      better to use JPEG, although it is clear as the origin picture only being 
      zoomed in enough. If I use JPEG as the output format, there is another 
      problem ---only the layer above others can be displayed (I want to display 
      all chosen layers). Any body can help me? Some codes about the raster 
      layer in my mapfile are as following:<BR><BR clear=all>IMAGETYPE 
      jpeg<BR>OUTPUTFORMAT<BR>NAME jpeg<BR>DRIVER "GD/JPEG"<BR>MIMETYPE 
      "image/jpeg"<BR>IMAGEMODE RGBA<BR>EXTENSION "jpg"<BR>TRANSPARENT 
      on<BR>FORMATOPTION QUALITY=100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      #value=0-100<BR>END<BR>layer<BR>name test<BR>type raster<BR>status 
      on<BR>data "data/20km.jpg"<BR>class<BR>name 
      "outline"<BR>outlinecolor&nbsp; 255 0 0<BR>end<BR>end<BR>end<BR>BTW, I can 
      not set class name as Chinese characters, otherwise it will become 
      disorderly codes in ka-map. Any suggestion are welcome. My operating 
      system is FreeBSD7.1Release, my locale is UTF-8.<BR><BR><BR><BR><BR><BR>-- 
      <BR>天道酬勤<BR></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>天道酬勤<BR></BLOCKQUOTE></BODY></HTML>