/** * Write the grid info file which is basically a world file with supplement information. * * @param filename * to write to. * @param metaInfo * to write. * @param options * containing information about the crs, origin location etc. * @throws NumberFormatException * @throws IOException */ public static void writeToFile( File filename, GridMetaInfoFile metaInfo, RasterIOOptions options ) throws IOException { PrintWriter writer = new PrintWriter( new FileWriter( filename ) ); write( writer, metaInfo, options ); writer.close(); }
GridMetaInfoFile.write( writer, info, null );