public class GeotiffAdapter
extends java.lang.Object
Constructor and Description |
---|
GeotiffAdapter(java.lang.String filename)
Create a new GeoTiffAdapter
|
Modifier and Type | Method and Description |
---|---|
visad.FlatField |
getData()
Get the data for this source.
|
visad.FlatField |
getDataAsGrid()
Get the data for this source.
|
visad.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
|
java.lang.String |
getKeyString()
Print the keys for this GeoTIFF
|
static void |
main(java.lang.String[] args)
Test routine
|
static void |
print(java.lang.String name,
com.sun.media.jai.codec.TIFFField field,
java.lang.StringBuffer sb)
Print a field
|
void |
printKeys()
Print the keys for this GeoTIFF
|
public GeotiffAdapter(java.lang.String filename) throws java.io.IOException
filename
- filename or URLjava.io.IOException
- problem opening the filepublic visad.FlatField getData() throws visad.VisADException, java.io.IOException
java.io.IOException
- problem opening filevisad.VisADException
- VisAD problempublic visad.FlatField getDataAsRgb() throws visad.VisADException, java.io.IOException
java.io.IOException
- problem opening filevisad.VisADException
- VisAD problempublic visad.FlatField getDataAsGrid() throws visad.VisADException, java.io.IOException
java.io.IOException
- problem opening filevisad.VisADException
- VisAD problempublic boolean getIsGeotiff()
public boolean getHasProjection() throws visad.VisADException, java.io.IOException
java.io.IOException
- problem opening filevisad.VisADException
- VisAD problempublic static void print(java.lang.String name, com.sun.media.jai.codec.TIFFField field, java.lang.StringBuffer sb)
name
- name of fieldfield
- field to printsb
- _more_public void printKeys()
public java.lang.String getKeyString()
public static void main(java.lang.String[] args)
args
- space separated filenames