gzipOut = new GZIPOutputStream(output);
output = gzipOut;
}
try {
final GridCoverageWriter writer = new ArcGridWriter(output);
final ParameterValueGroup params = writer.getFormat().getWriteParameters();
//params.parameter("Compressed").setValue(compressOutput);
writer.write(sourceCoverage, null);
if (gzipOut != null) {
gzipOut.finish();
gzipOut.flush();
}
// freeing everything
writer.dispose();
this.sourceCoverage.dispose(false);
this.sourceCoverage = null;
} catch (Exception e) {
throw new WcsException(new StringBuffer("Problems Rendering Image").append(
e.getMessage()).toString(), e);