Codota Logo
GeoTiff.writeIFDEntry
Code IndexAdd Codota to your IDE (free)

How to use
writeIFDEntry
method
in
ucar.nc2.geotiff.GeoTiff

Best Java code snippets using ucar.nc2.geotiff.GeoTiff.writeIFDEntry (Showing top 3 results out of 315)

  • Common ways to obtain GeoTiff
private void myMethod () {
GeoTiff g =
  • Codota IconString filename;new GeoTiff(filename)
  • Smart code suggestions by Codota
}
origin: Unidata/thredds

private void writeIFD(FileChannel channel, int start) throws IOException {
 channel.position(start);
 ByteBuffer buffer = ByteBuffer.allocate(2);
 int n = tags.size();
 buffer.putShort((short) n);
 buffer.flip();
 channel.write(buffer);
 start += 2;
 startOverflowData = start + 12 * tags.size() + 4;
 nextOverflowData = startOverflowData;
 for (IFDEntry elem : tags) {
  writeIFDEntry(channel, elem, start);
  start += 12;
 }
 // firstIFD = startOverflowData;
 // position to where the "next IFD" goes
 channel.position(startOverflowData - 4);
 lastIFD = startOverflowData - 4;
 if (debugRead) System.out.println("pos before writing nextIFD= " + channel.position());
 buffer = ByteBuffer.allocate(4);
 buffer.putInt(0);
 buffer.flip();
 channel.write(buffer);
}
origin: edu.ucar/netcdf

private void writeIFD(FileChannel channel, int start) throws IOException {
 channel.position(start);
 ByteBuffer buffer = ByteBuffer.allocate(2);
 int n = tags.size();
 buffer.putShort((short) n);
 buffer.flip();
 channel.write(buffer);
 start += 2;
 startOverflowData = start + 12 * tags.size() + 4;
 nextOverflowData = startOverflowData;
 for (IFDEntry elem : tags) {
  writeIFDEntry(channel, elem, start);
  start += 12;
 }
 // firstIFD = startOverflowData;
 // position to where the "next IFD" goes
 channel.position(startOverflowData - 4);
 lastIFD = startOverflowData - 4;
 if (debugRead) System.out.println("pos before writing nextIFD= " + channel.position());
 buffer = ByteBuffer.allocate(4);
 buffer.putInt(0);
 buffer.flip();
 channel.write(buffer);
}
origin: edu.ucar/cdm

private void writeIFD(FileChannel channel, int start) throws IOException {
 channel.position(start);
 ByteBuffer buffer = ByteBuffer.allocate(2);
 int n = tags.size();
 buffer.putShort((short) n);
 buffer.flip();
 channel.write(buffer);
 start += 2;
 startOverflowData = start + 12 * tags.size() + 4;
 nextOverflowData = startOverflowData;
 for (IFDEntry elem : tags) {
  writeIFDEntry(channel, elem, start);
  start += 12;
 }
 // firstIFD = startOverflowData;
 // position to where the "next IFD" goes
 channel.position(startOverflowData - 4);
 lastIFD = startOverflowData - 4;
 if (debugRead) System.out.println("pos before writing nextIFD= " + channel.position());
 buffer = ByteBuffer.allocate(4);
 buffer.putInt(0);
 buffer.flip();
 channel.write(buffer);
}
ucar.nc2.geotiffGeoTiffwriteIFDEntry

Popular methods of GeoTiff

  • <init>
    Constructor. Does not open or create the file.
  • findTag
  • showInfo
    Write the geotiff Tag information to out.
  • addGeoKey
  • addTag
  • close
    Close the Geotiff file.
  • init
  • initTags
  • parseGeoInfo
  • readHeader
  • readIFD
  • readIFDEntry
  • readIFD,
  • readIFDEntry,
  • readIntValue,
  • readSValue,
  • readUShortValue,
  • readValues,
  • setTransform,
  • writeData,
  • writeGeoKeys,
  • writeHeader

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now