Package org.esa.snap.core.util.geotiff
Class GeoTIFFMetadata
- java.lang.Object
-
- org.esa.snap.core.util.geotiff.GeoTIFFMetadata
-
public class GeoTIFFMetadata extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoTIFFMetadata.KeyEntry
static class
GeoTIFFMetadata.TiePoint
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description GeoTIFFMetadata()
GeoTIFFMetadata(int geoTIFFVersion, int keyRevisionMajor, int keyRevisionMinor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.jdom2.Element element, String metadataFormatName, String classNameList)
org.jdom2.Element
createRootTree(String classNameList)
void
dump()
void
dump(PrintWriter out)
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)
-
-
-
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
-
-
Method Detail
-
isTiffUShort
public static boolean isTiffUShort(int value)
-
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()
-
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()
-
getModelTransformation
public double[] getModelTransformation()
-
setModelTransformation
public void setModelTransformation(double[] matrix)
-
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.jdom2.Element element, String metadataFormatName, String classNameList)
-
createRootTree
public org.jdom2.Element createRootTree(String classNameList)
-
dump
public void dump()
-
dump
public void dump(PrintWriter out)
-
-