<div class="gmail_quote"><div>Hi Jukka,</div><div><br></div><div>I assume you mean WCS 2.0 and that you are referring to the MEDIATYPE directive. The documentation at <a href="http://mapserver.org/ogc/wcs_server.html#test-your-wcs-1-0-server">http://mapserver.org/ogc/wcs_server.html#test-your-wcs-1-0-server</a> said that only &quot;<span style="background-color:rgb(255,255,255);color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:13px;line-height:19px">multipart/mixed&quot; was allowed. Am I mistaken?</span></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Date: Thu, 19 Jan 2012 08:13:54 +0000<br>
From: Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;<br>
Subject: Re: [mapserver-users] 16 bit PNG or 16 bit jpeg output<br>
To: &quot;&#39;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&#39;&quot;<br>
        &lt;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:84446DEF76453C439E9E97E438E13A63063812@suutari.haapa.mmm.fi">84446DEF76453C439E9E97E438E13A63063812@suutari.haapa.mmm.fi</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Hi,<br>
<br>
Could it be possible for you to use WCS 1.0.0 for avoiding the multipart thing?<br>
<br>
-Jukka Rahkonen-<br>
<br>
________________________________<br>
Ragi Burhum  wrote:<br>
Hello,<br>
<br>
I am trying to output a single band 16bit png (or jpeg) output from a Mapserver WCS service.<br>
<br>
I have tried the following output formats:<br>
<br>
OUTPUTFORMAT<br>
    NAME jpeg<br>
    DRIVER &quot;GDAL/JPEG&quot;<br>
    MIMETYPE &quot;image/jpeg&quot;<br>
    IMAGEMODE INT16<br>
    EXTENSION &quot;jpg&quot;<br>
    FORMATOPTION &quot;QUALITY=85&quot;<br>
 END<br>
<br>
OUTPUTFORMAT<br>
    NAME GDALPNG<br>
    DRIVER &quot;GDAL/PNG&quot;<br>
    MIMETYPE &quot;image/png&quot;<br>
    IMAGEMODE INT16<br>
    EXTENSION &quot;png&quot;<br>
    FORMATOPTION &quot;FILENAME=result.png&quot;<br>
  END<br>
<br>
When I try different IMAGEMODEs, I get the correct results, but for some reason, INT16 does not work. I looked through the mailing list and I noticed that this question has been asked before:<br>
<br>
<a href="http://osgeo-org.1803224.n2.nabble.com/16-Bit-PNG-Output-td6249725.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/16-Bit-PNG-Output-td6249725.html</a><br>
<a href="http://osgeo-org.1803224.n2.nabble.com/Using-a-16-bit-per-band-PNG-image-td2490088.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Using-a-16-bit-per-band-PNG-image-td2490088.html</a><br>
<br>
I tried looking for a ticket in Trac, but I had no luck. Am I doing something wrong? Perhaps I could accomplish this somehow with a custom gdal driver?<br>
<br>
Also, a side question, if I wanted to make sure the replies from my WCS getcoverage calls were not multipart (I am just interested in the binary output), is there some mapserver-specific setting I can use to just get that image as a reply instead of the accompanying xml files?<br>

<br>
Thanks!<br>
<br>
- Ragi</blockquote></div>