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

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

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

origin: Unidata/thredds

private int writeValues(ByteBuffer buffer, IFDEntry ifd) {
 int done = 0;
 if (ifd.type == FieldType.ASCII) {
  return writeSValue(buffer, ifd);
 } else if (ifd.type == FieldType.RATIONAL) {
  for (int i = 0; i < ifd.count * 2; i++)
   done += writeIntValue(buffer, ifd, ifd.value[i]);
 } else if (ifd.type == FieldType.FLOAT) {
  for (int i = 0; i < ifd.count; i++)
   buffer.putFloat((float) ifd.valueD[i]);
  done += ifd.count * 4;
 } else if (ifd.type == FieldType.DOUBLE) {
  for (int i = 0; i < ifd.count; i++)
   buffer.putDouble(ifd.valueD[i]);
  done += ifd.count * 8;
 } else {
  for (int i = 0; i < ifd.count; i++)
   done += writeIntValue(buffer, ifd, ifd.value[i]);
 }
 return done;
}
origin: edu.ucar/netcdf

private int writeValues(ByteBuffer buffer, IFDEntry ifd) {
 int done = 0;
 if (ifd.type == FieldType.ASCII) {
  return writeSValue(buffer, ifd);
 } else if (ifd.type == FieldType.RATIONAL) {
  for (int i = 0; i < ifd.count * 2; i++)
   done += writeIntValue(buffer, ifd, ifd.value[i]);
 } else if (ifd.type == FieldType.FLOAT) {
  for (int i = 0; i < ifd.count; i++)
   buffer.putFloat((float) ifd.valueD[i]);
  done += ifd.count * 4;
 } else if (ifd.type == FieldType.DOUBLE) {
  for (int i = 0; i < ifd.count; i++)
   buffer.putDouble(ifd.valueD[i]);
  done += ifd.count * 8;
 } else {
  for (int i = 0; i < ifd.count; i++)
   done += writeIntValue(buffer, ifd, ifd.value[i]);
 }
 return done;
}
origin: edu.ucar/cdm

private int writeValues(ByteBuffer buffer, IFDEntry ifd) {
 int done = 0;
 if (ifd.type == FieldType.ASCII) {
  return writeSValue(buffer, ifd);
 } else if (ifd.type == FieldType.RATIONAL) {
  for (int i = 0; i < ifd.count * 2; i++)
   done += writeIntValue(buffer, ifd, ifd.value[i]);
 } else if (ifd.type == FieldType.FLOAT) {
  for (int i = 0; i < ifd.count; i++)
   buffer.putFloat((float) ifd.valueD[i]);
  done += ifd.count * 4;
 } else if (ifd.type == FieldType.DOUBLE) {
  for (int i = 0; i < ifd.count; i++)
   buffer.putDouble(ifd.valueD[i]);
  done += ifd.count * 8;
 } else {
  for (int i = 0; i < ifd.count; i++)
   done += writeIntValue(buffer, ifd, ifd.value[i]);
 }
 return done;
}
ucar.nc2.geotiffGeoTiffwriteIntValue

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
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JFrame (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top PhpStorm plugins
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