public void writeTiff ( ) { if ( directory . getWriteRasters ( ) != null ) { TIFFImage tiffImage = new TIFFImage ( ) ; tiffImage . add ( directory ) ; try { imageBytes = TiffWriter . writeTiffToBytes ( tiffImage ) ; } catch ( IOException e ) { throw new GeoPackageException ( "Failed to write TIFF image" , e ) ; } } }
Write the TIFF file to the image bytes