<span style>Hello,</span><div style><br></div><div style>I am trying to output a single band 16bit png (or jpeg) output from a Mapserver WCS service.</div><div style><br></div><div style>I have tried the following output formats:</div>
<div style><br></div><div style><div>OUTPUTFORMAT</div><div>    NAME jpeg</div><div>    DRIVER &quot;GDAL/JPEG&quot;</div><div>    MIMETYPE &quot;image/jpeg&quot;</div><div>    IMAGEMODE INT16</div><div>    EXTENSION &quot;jpg&quot;</div>
<div>    FORMATOPTION &quot;QUALITY=85&quot;</div><div> END</div></div><div style><br></div><div style><div>OUTPUTFORMAT</div><div>    NAME GDALPNG</div><div>    DRIVER &quot;GDAL/PNG&quot;</div><div>    MIMETYPE &quot;image/png&quot;</div>
<div>    IMAGEMODE INT16</div><div>    EXTENSION &quot;png&quot;</div><div>    FORMATOPTION &quot;FILENAME=result.png&quot;</div><div>  END</div></div><div style><br></div><div style>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 style><br></div><div style><a href="http://osgeo-org.1803224.n2.nabble.com/16-Bit-PNG-Output-td6249725.html" target="_blank" style="color:rgb(17,85,204)">http://osgeo-org.1803224.n2.nabble.com/16-Bit-PNG-Output-td6249725.html</a></div>
<div style><a href="http://osgeo-org.1803224.n2.nabble.com/Using-a-16-bit-per-band-PNG-image-td2490088.html" target="_blank" style="color:rgb(17,85,204)">http://osgeo-org.1803224.n2.nabble.com/Using-a-16-bit-per-band-PNG-image-td2490088.html</a></div>
<div style><br></div><div style>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 style><br></div><div style>
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 style><br></div><div style>Thanks!</div><div style><br></div><div style>- Ragi</div>