/** * Read the geotiff file, using the filename passed in the constructor. * * @throws IOException on read error */ public void read() throws IOException { file = new RandomAccessFile(filename, "r"); channel = file.getChannel(); if (debugRead) System.out.println("Opened file to read:'" + filename + "', size=" + channel.size()); readonly = true; int nextOffset = readHeader(channel); while (nextOffset > 0) { nextOffset = readIFD(channel, nextOffset); parseGeoInfo(); } //parseGeoInfo(); }
/** * Read the geotiff file, using the filename passed in the constructor. * * @throws IOException on read error */ public void read() throws IOException { file = new RandomAccessFile(filename, "r"); channel = file.getChannel(); if (debugRead) System.out.println("Opened file to read:'" + filename + "', size=" + channel.size()); readonly = true; int nextOffset = readHeader(channel); while (nextOffset > 0) { nextOffset = readIFD(channel, nextOffset); parseGeoInfo(); } //parseGeoInfo(); }
/** * Read the geotiff file, using the filename passed in the constructor. * * @throws IOException on read error */ public void read() throws IOException { file = new RandomAccessFile(filename, "r"); channel = file.getChannel(); if (debugRead) System.out.println("Opened file to read:'" + filename + "', size=" + channel.size()); readonly = true; int nextOffset = readHeader(channel); while (nextOffset > 0) { nextOffset = readIFD(channel, nextOffset); parseGeoInfo(); } //parseGeoInfo(); }