Tabnine Logo
GeoTiff.writeGeoKeys
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using ucar.nc2.geotiff.GeoTiff.writeGeoKeys (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.geotiffGeoTiffwriteGeoKeys

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,
  • writeHeader

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • String (java.lang)
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
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