congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GeoTiff.writeIFD
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: Unidata/thredds

void writeMetadata(int imageNumber) throws IOException {
 if (file == null)
  init();
 // geokeys all get added at once
 writeGeoKeys();
 // tags gotta be in order
 Collections.sort(tags);
 if (imageNumber == 1) {
  writeHeader(channel);
 } else {
  //now this is not the first image we need to fill the Offset of nextIFD
  channel.position(lastIFD);
  ByteBuffer buffer = ByteBuffer.allocate(4);
  if (debugRead)
   System.out.println("position before writing nextIFD= " + channel.position() + " IFD is " + firstIFD);
  buffer.putInt(firstIFD);
  buffer.flip();
  channel.write(buffer);
 }
 writeIFD(channel, firstIFD);
}
origin: edu.ucar/cdm

void writeMetadata(int imageNumber) throws IOException {
 if (file == null)
  init();
 // geokeys all get added at once
 writeGeoKeys();
 // tags gotta be in order
 Collections.sort(tags);
 if (imageNumber == 1) {
  writeHeader(channel);
 } else {
  //now this is not the first image we need to fill the Offset of nextIFD
  channel.position(lastIFD);
  ByteBuffer buffer = ByteBuffer.allocate(4);
  if (debugRead)
   System.out.println("position before writing nextIFD= " + channel.position() + " IFD is " + firstIFD);
  buffer.putInt(firstIFD);
  buffer.flip();
  channel.write(buffer);
 }
 writeIFD(channel, firstIFD);
}
origin: edu.ucar/netcdf

void writeMetadata(int imageNumber) throws IOException {
 if (file == null)
  init();
 // geokeys all get added at once
 writeGeoKeys();
 // tags gotta be in order
 Collections.sort(tags);
 int start = 0;
 if (imageNumber == 1)
  start = writeHeader(channel);
 else {
  //now this is not the first image we need to fill the Offset of nextIFD
  channel.position(lastIFD);
  ByteBuffer buffer = ByteBuffer.allocate(4);
  if (debugRead)
   System.out.println("position before writing nextIFD= " + channel.position() + " IFD is " + firstIFD);
  buffer.putInt(firstIFD);
  buffer.flip();
  channel.write(buffer);
 }
 writeIFD(channel, firstIFD);
}
ucar.nc2.geotiffGeoTiffwriteIFD

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
  • getSystemService (Context)
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now