Class GeotiffAdapter

java.lang.Object
ucar.unidata.data.gis.GeotiffAdapter

public class GeotiffAdapter extends Object
An adapter for GeoTIFF data files.
Version:
$Revision: 1.10 $
Author:
IDV development team
  • Constructor Details

    • GeotiffAdapter

      public GeotiffAdapter(String filename) throws IOException
      Create a new GeoTiffAdapter
      Parameters:
      filename - filename or URL
      Throws:
      IOException - problem opening the file
  • Method Details

    • getData

      public FlatField getData() throws VisADException, IOException
      Get the data for this source.
      Returns:
      associated data
      Throws:
      IOException - problem opening file
      VisADException - VisAD problem
    • getDataAsRgb

      public FlatField getDataAsRgb() throws VisADException, IOException
      Get the data for this source.
      Returns:
      associated data
      Throws:
      IOException - problem opening file
      VisADException - VisAD problem
    • getDataAsGrid

      public FlatField getDataAsGrid() throws VisADException, IOException
      Get the data for this source.
      Returns:
      associated data
      Throws:
      IOException - problem opening file
      VisADException - VisAD problem
    • getIsGeotiff

      public boolean getIsGeotiff()
      See if this is a GeoTIFF file or not
      Returns:
      true if GeoTIFF
    • getHasProjection

      public boolean getHasProjection() throws VisADException, IOException
      See if this has a projection
      Returns:
      true if data has a projection
      Throws:
      IOException - problem opening file
      VisADException - VisAD problem
    • print

      public static void print(String name, com.sun.media.jai.codec.TIFFField field, StringBuffer sb)
      Print a field
      Parameters:
      name - name of field
      field - field to print
      sb - _more_
    • printKeys

      public void printKeys()
      Print the keys for this GeoTIFF
    • getKeyString

      public String getKeyString()
      Print the keys for this GeoTIFF
      Returns:
      _more_
    • main

      public static void main(String[] args)
      Test routine
      Parameters:
      args - space separated filenames