org.esa.beam.util.geotiff
Class GeoTIFFMetadata

java.lang.Object
  extended by org.esa.beam.util.geotiff.GeoTIFFMetadata

public class GeoTIFFMetadata
extends Object


Nested Class Summary
static class GeoTIFFMetadata.KeyEntry
           
static class GeoTIFFMetadata.TiePoint
           
 
Field Summary
static String IIO_IMAGE_FORMAT_NAME
           
static String IIO_METADATA_FORMAT_NAME
           
static String IIO_TIFF_ASCII_ELEMENT_NAME
           
static String IIO_TIFF_ASCIIS_ELEMENT_NAME
           
static String IIO_TIFF_DOUBLE_ELEMENT_NAME
           
static String IIO_TIFF_DOUBLES_ELEMENT_NAME
           
static String IIO_TIFF_FIELD_ELEMENT_NAME
           
static String IIO_TIFF_IFD_ELEMENT_NAME
           
static String IIO_TIFF_NAME_ATT_NAME
           
static String IIO_TIFF_NUMBER_ATT_NAME
           
static String IIO_TIFF_ROOT_ELEMENT_NAME
           
static String IIO_TIFF_SHORT_ELEMENT_NAME
           
static String IIO_TIFF_SHORTS_ELEMENT_NAME
           
static String IIO_TIFF_TAGSETS_ATT_NAME
           
static String IIO_TIFF_VALUE_ATT_NAME
           
 
Constructor Summary
GeoTIFFMetadata()
           
GeoTIFFMetadata(int geoTIFFVersion, int keyRevisionMajor, int keyRevisionMinor)
           
 
Method Summary
 void addGeoAscii(int keyID, String value)
           
 void addGeoDoubleParam(int keyID, double value)
           
 void addGeoDoubleParams(int keyID, double[] values)
           
 void addGeoShortParam(int keyID, int value)
           
 void addModelTiePoint(double i, double j, double x, double y)
           
 void addModelTiePoint(double i, double j, double k, double x, double y, double z)
           
 void assignTo(org.jdom.Element element)
           
 org.jdom.Element createRootTree()
           
 void dump()
           
 void dump(PrintWriter out)
           
 String getAsXML()
           
 String getGeoAsciiParam(int keyID)
           
 String getGeoAsciiParams()
           
protected static com.sun.media.imageio.plugins.tiff.TIFFTag getGeoAsciiParamsTag()
           
 double getGeoDoubleParam(int keyID)
           
 double[] getGeoDoubleParams()
           
 double[] getGeoDoubleParams(int keyID)
           
 double[] getGeoDoubleParams(int keyID, double[] values)
           
protected static com.sun.media.imageio.plugins.tiff.TIFFTag getGeoDoubleParamsTag()
           
protected static com.sun.media.imageio.plugins.tiff.TIFFTag getGeoKeyDirectoryTag()
           
 GeoTIFFMetadata.KeyEntry[] getGeoKeyEntries()
           
 GeoTIFFMetadata.KeyEntry getGeoKeyEntry(int keyID)
           
 GeoTIFFMetadata.KeyEntry getGeoKeyEntryAt(int index)
           
 int getGeoShortParam(int keyID)
           
 int getGeoTIFFVersion()
           
 int getKeyRevisionMajor()
           
 int getKeyRevisionMinor()
           
 double[] getModelPixelScale()
           
protected static com.sun.media.imageio.plugins.tiff.TIFFTag getModelPixelScaleTag()
           
 double getModelPixelScaleX()
           
 double getModelPixelScaleY()
           
 double getModelPixelScaleZ()
           
 GeoTIFFMetadata.TiePoint getModelTiePoint()
           
 GeoTIFFMetadata.TiePoint getModelTiePointAt(int index)
           
protected static com.sun.media.imageio.plugins.tiff.TIFFTag getModelTiePointTag()
           
 double[] getModelTransformation()
           
protected static com.sun.media.imageio.plugins.tiff.TIFFTag getModelTransformationTag()
           
 int getNumGeoKeyEntries()
           
 int getNumModelTiePoints()
           
 boolean hasGeoKeyEntry(int keyID)
           
static boolean isTiffUShort(int value)
           
 void setGeoTIFFVersion(int version)
           
 void setKeyRevision(int major, int minor)
           
 void setModelPixelScale(double x, double y)
           
 void setModelPixelScale(double x, double y, double z)
           
 void setModelTiePoint(double i, double j, double x, double y)
           
 void setModelTiePoint(double i, double j, double k, double x, double y, double z)
           
 void setModelTransformation(double[] matrix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IIO_METADATA_FORMAT_NAME

public static final String IIO_METADATA_FORMAT_NAME
See Also:
Constant Field Values

IIO_TIFF_ROOT_ELEMENT_NAME

public static final String IIO_TIFF_ROOT_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_IFD_ELEMENT_NAME

public static final String IIO_TIFF_IFD_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_FIELD_ELEMENT_NAME

public static final String IIO_TIFF_FIELD_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_SHORT_ELEMENT_NAME

public static final String IIO_TIFF_SHORT_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_SHORTS_ELEMENT_NAME

public static final String IIO_TIFF_SHORTS_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_DOUBLE_ELEMENT_NAME

public static final String IIO_TIFF_DOUBLE_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_DOUBLES_ELEMENT_NAME

public static final String IIO_TIFF_DOUBLES_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_ASCII_ELEMENT_NAME

public static final String IIO_TIFF_ASCII_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_ASCIIS_ELEMENT_NAME

public static final String IIO_TIFF_ASCIIS_ELEMENT_NAME
See Also:
Constant Field Values

IIO_TIFF_TAGSETS_ATT_NAME

public static final String IIO_TIFF_TAGSETS_ATT_NAME
See Also:
Constant Field Values

IIO_TIFF_NUMBER_ATT_NAME

public static final String IIO_TIFF_NUMBER_ATT_NAME
See Also:
Constant Field Values

IIO_TIFF_NAME_ATT_NAME

public static final String IIO_TIFF_NAME_ATT_NAME
See Also:
Constant Field Values

IIO_TIFF_VALUE_ATT_NAME

public static final String IIO_TIFF_VALUE_ATT_NAME
See Also:
Constant Field Values

IIO_IMAGE_FORMAT_NAME

public static final String IIO_IMAGE_FORMAT_NAME
See Also:
Constant Field Values
Constructor Detail

GeoTIFFMetadata

public GeoTIFFMetadata()

GeoTIFFMetadata

public GeoTIFFMetadata(int geoTIFFVersion,
                       int keyRevisionMajor,
                       int keyRevisionMinor)
Method Detail

isTiffUShort

public static boolean isTiffUShort(int value)

getGeoTIFFVersion

public int getGeoTIFFVersion()

setGeoTIFFVersion

public void setGeoTIFFVersion(int version)

getKeyRevisionMajor

public int getKeyRevisionMajor()

getKeyRevisionMinor

public int getKeyRevisionMinor()

setKeyRevision

public void setKeyRevision(int major,
                           int minor)

getModelPixelScaleX

public double getModelPixelScaleX()

getModelPixelScaleY

public double getModelPixelScaleY()

getModelPixelScaleZ

public double getModelPixelScaleZ()

setModelPixelScale

public void setModelPixelScale(double x,
                               double y)

setModelPixelScale

public void setModelPixelScale(double x,
                               double y,
                               double z)

getModelPixelScale

public double[] getModelPixelScale()

setModelTransformation

public void setModelTransformation(double[] matrix)

getModelTransformation

public double[] getModelTransformation()

getNumModelTiePoints

public int getNumModelTiePoints()

getModelTiePoint

public GeoTIFFMetadata.TiePoint getModelTiePoint()

getModelTiePointAt

public GeoTIFFMetadata.TiePoint getModelTiePointAt(int index)

setModelTiePoint

public void setModelTiePoint(double i,
                             double j,
                             double x,
                             double y)

setModelTiePoint

public void setModelTiePoint(double i,
                             double j,
                             double k,
                             double x,
                             double y,
                             double z)

addModelTiePoint

public void addModelTiePoint(double i,
                             double j,
                             double x,
                             double y)

addModelTiePoint

public void addModelTiePoint(double i,
                             double j,
                             double k,
                             double x,
                             double y,
                             double z)

getNumGeoKeyEntries

public int getNumGeoKeyEntries()

getGeoKeyEntryAt

public GeoTIFFMetadata.KeyEntry getGeoKeyEntryAt(int index)

getGeoKeyEntries

public GeoTIFFMetadata.KeyEntry[] getGeoKeyEntries()

getGeoKeyEntry

public GeoTIFFMetadata.KeyEntry getGeoKeyEntry(int keyID)

hasGeoKeyEntry

public boolean hasGeoKeyEntry(int keyID)

getGeoShortParam

public int getGeoShortParam(int keyID)

getGeoDoubleParams

public double[] getGeoDoubleParams()

getGeoDoubleParam

public double getGeoDoubleParam(int keyID)

getGeoDoubleParams

public double[] getGeoDoubleParams(int keyID)

getGeoDoubleParams

public double[] getGeoDoubleParams(int keyID,
                                   double[] values)

getGeoAsciiParams

public String getGeoAsciiParams()

getGeoAsciiParam

public String getGeoAsciiParam(int keyID)

addGeoShortParam

public void addGeoShortParam(int keyID,
                             int value)

addGeoDoubleParam

public void addGeoDoubleParam(int keyID,
                              double value)

addGeoDoubleParams

public void addGeoDoubleParams(int keyID,
                               double[] values)

addGeoAscii

public void addGeoAscii(int keyID,
                        String value)

assignTo

public void assignTo(org.jdom.Element element)

createRootTree

public org.jdom.Element createRootTree()

dump

public void dump()

dump

public void dump(PrintWriter out)

getAsXML

public String getAsXML()

getGeoKeyDirectoryTag

protected static com.sun.media.imageio.plugins.tiff.TIFFTag getGeoKeyDirectoryTag()

getGeoDoubleParamsTag

protected static com.sun.media.imageio.plugins.tiff.TIFFTag getGeoDoubleParamsTag()

getGeoAsciiParamsTag

protected static com.sun.media.imageio.plugins.tiff.TIFFTag getGeoAsciiParamsTag()

getModelPixelScaleTag

protected static com.sun.media.imageio.plugins.tiff.TIFFTag getModelPixelScaleTag()

getModelTiePointTag

protected static com.sun.media.imageio.plugins.tiff.TIFFTag getModelTiePointTag()

getModelTransformationTag

protected static com.sun.media.imageio.plugins.tiff.TIFFTag getModelTransformationTag()


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.