<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19154">
</head>
<body>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="801061208-19012012">Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="801061208-19012012"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="801061208-19012012">Could it be possible for you to use WCS 1.0.0 for avoiding the multipart thing?</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="801061208-19012012"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="801061208-19012012">-Jukka Rahkonen-</span></font></div>
<font color="#0000ff" size="2" face="Arial"></font><br>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" dir="ltr">
<div dir="ltr" lang="fi" class="OutlookMessageHeader" align="left">
<hr tabindex="-1">
<font size="2" face="Tahoma">Ragi Burhum<span class="801061208-19012012"><font color="#0000ff" face="Arial">&nbsp; wrote:</font></span></font><br>
</div>
<div></div>
<span>Hello,</span>
<div><br>
</div>
<div>I am trying to output a single band 16bit png (or jpeg) output from a Mapserver WCS service.</div>
<div><br>
</div>
<div>I have tried the following output formats:</div>
<div><br>
</div>
<div>
<div>OUTPUTFORMAT</div>
<div>&nbsp; &nbsp; NAME jpeg</div>
<div>&nbsp; &nbsp; DRIVER &quot;GDAL/JPEG&quot;</div>
<div>&nbsp; &nbsp; MIMETYPE &quot;image/jpeg&quot;</div>
<div>&nbsp; &nbsp; IMAGEMODE INT16</div>
<div>&nbsp; &nbsp; EXTENSION &quot;jpg&quot;</div>
<div>&nbsp; &nbsp; FORMATOPTION &quot;QUALITY=85&quot;</div>
<div>&nbsp;END</div>
</div>
<div><br>
</div>
<div>
<div>OUTPUTFORMAT</div>
<div>&nbsp; &nbsp; NAME GDALPNG</div>
<div>&nbsp; &nbsp; DRIVER &quot;GDAL/PNG&quot;</div>
<div>&nbsp; &nbsp; MIMETYPE &quot;image/png&quot;</div>
<div>&nbsp; &nbsp; IMAGEMODE INT16</div>
<div>&nbsp; &nbsp; EXTENSION &quot;png&quot;</div>
<div>&nbsp; &nbsp; FORMATOPTION &quot;FILENAME=result.png&quot;</div>
<div>&nbsp; END</div>
</div>
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div><a style="COLOR: rgb(17,85,204)" 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></div>
<div><a style="COLOR: rgb(17,85,204)" 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></div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>- Ragi</div>
</blockquote>
</body>
</html>