<div class="gmail_quote"><div>Hello Jukka and Stephan,</div><div><br></div><div>Thank you a lot for the pointer. Yes, version 1.0.0 definitely does the trick and I will use that instead. I got a big confused with the documentation and it was not too clear to me that was the behavior. Thank you!</div>
<div><br></div><div>As far as my original question for 16bit png (or jpeg) output, is there something that can be done about that?</div><div><br></div><div>The tiff output files I get are too big for such a small area and it makes unusable for mobile devices.</div>
<div><br></div><div>Thanks again,</div><div><br></div><div>- Ragi</div><div><br></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 18:46:37 +0100<br>

From: Stephan Mei?l &lt;<a href="mailto:stephan@meissl.name">stephan@meissl.name</a>&gt;<br>
Subject: Re: [mapserver-users] 16 bit PNG or 16 bit jpeg output<br>
To: Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;<br>
Cc: &quot;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&quot;<br>
        &lt;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br>
Message-ID: &lt;1326995197.2995.49.camel@io&gt;<br>
Content-Type: text/plain; charset=&quot;UTF-8&quot;<br>
<br>
Hi,<br>
<br>
if you omit the mediatype parameter with version 2.0 you definitely get<br>
back only the binary output as requested in the format parameter. In WCS<br>
1.1 afaik you always get back a multipart response and in WCS 1.0 always<br>
only the binary.<br>
<br>
cu<br>
Stephan<br>
<br>
<br>
On Thu, 2012-01-19 at 17:16 +0000, Rahkonen Jukka wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; No way, I mean the WCS version 1.0 as described in the very same document <a href="http://www.mapserver.org/ogc/wcs_server.html" target="_blank">http://www.mapserver.org/ogc/wcs_server.html</a><br>
&gt;<br>
&gt; -Jukka Rahkonen-<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt; LƤhettƤjƤ: Ragi Burhum [<a href="mailto:ragi@burhum.com">ragi@burhum.com</a>]<br>
&gt; LƤhetetty: 19. tammikuuta 2012 19:02<br>
&gt; Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>; Rahkonen Jukka<br>
&gt; Aihe: Re: [mapserver-users] 16 bit PNG or 16 bit jpeg output<br>
&gt;<br>
&gt; Hi Jukka,<br>
&gt;<br>
&gt; 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" target="_blank">http://mapserver.org/ogc/wcs_server.html#test-your-wcs-1-0-server</a> said that only &quot;multipart/mixed&quot; was allowed. Am I mistaken?<br>

&gt;<br>
&gt; Date: Thu, 19 Jan 2012 08:13:54 +0000<br>
&gt; From: Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&lt;mailto:<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;&gt;<br>
&gt; Subject: Re: [mapserver-users] 16 bit PNG or 16 bit jpeg output<br>
&gt; To: &quot;&#39;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;&#39;&quot;<br>
&gt;        &lt;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;&gt;<br>
&gt; Message-ID:<br>
&gt;        &lt;<a href="mailto:84446DEF76453C439E9E97E438E13A63063812@suutari.haapa.mmm.fi">84446DEF76453C439E9E97E438E13A63063812@suutari.haapa.mmm.fi</a>&lt;mailto:<a href="mailto:84446DEF76453C439E9E97E438E13A63063812@suutari.haapa.mmm.fi">84446DEF76453C439E9E97E438E13A63063812@suutari.haapa.mmm.fi</a>&gt;&gt;<br>

&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Could it be possible for you to use WCS 1.0.0 for avoiding the multipart thing?<br>
&gt;<br>
&gt; -Jukka Rahkonen-<br>
&gt;<br>
&gt; ________________________________<br>
&gt; Ragi Burhum  wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am trying to output a single band 16bit png (or jpeg) output from a Mapserver WCS service.<br>
&gt;<br>
&gt; I have tried the following output formats:<br>
&gt;<br>
&gt; OUTPUTFORMAT<br>
&gt;    NAME jpeg<br>
&gt;    DRIVER &quot;GDAL/JPEG&quot;<br>
&gt;    MIMETYPE &quot;image/jpeg&quot;<br>
&gt;    IMAGEMODE INT16<br>
&gt;    EXTENSION &quot;jpg&quot;<br>
&gt;    FORMATOPTION &quot;QUALITY=85&quot;<br>
&gt;  END<br>
&gt;<br>
&gt; OUTPUTFORMAT<br>
&gt;    NAME GDALPNG<br>
&gt;    DRIVER &quot;GDAL/PNG&quot;<br>
&gt;    MIMETYPE &quot;image/png&quot;<br>
&gt;    IMAGEMODE INT16<br>
&gt;    EXTENSION &quot;png&quot;<br>
&gt;    FORMATOPTION &quot;FILENAME=result.png&quot;<br>
&gt;  END<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; <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>
&gt; <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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>

&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; - Ragi<br></blockquote></div>