public GeoTiffWriterHelper(GridCoverage2D coverage) throws IOException { this.coverage = coverage; // did we get lucky and all we need to do is to copy the original file file over? if (isUnprocessed(coverage)) { this.sourceFile = getSourceFile(coverage); } // setup default writing params, respect by default the original tiling structure // for optimal extraction performance this.imageIoWriteParams = buildWriteParams(coverage); this.geotoolsWriteParams = buildGeoToolsWriteParams(imageIoWriteParams); }