ucar.unidata.data.gis
Class GeotiffAdapter

java.lang.Object
  extended by 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 Summary
GeotiffAdapter(String filename)
          Create a new GeoTiffAdapter
 
Method Summary
 FlatField getData()
          Get the data for this source.
 FlatField getDataAsGrid()
          Get the data for this source.
 FlatField getDataAsRgb()
          Get the data for this source.
 boolean getHasProjection()
          See if this has a projection
 boolean getIsGeotiff()
          See if this is a GeoTIFF file or not
 String getKeyString()
          Print the keys for this GeoTIFF
static void main(String[] args)
          Test routine
static void print(String name, com.sun.media.jai.codec.TIFFField field, StringBuffer sb)
          Print a field
 void printKeys()
          Print the keys for this GeoTIFF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeotiffAdapter

public GeotiffAdapter(String filename)
               throws IOException
Create a new GeoTiffAdapter

Parameters:
filename - filename or URL
Throws:
IOException - problem opening the file
Method Detail

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