Class TLcdGeoTIFFField

java.lang.Object
com.luciad.format.raster.TLcdGeoTIFFField

public class TLcdGeoTIFFField extends Object
This class describes a TIFF or GeoTIFF tag and the corresponding field. The tag normally serves as a key. The field then contains a value or a list of values that can be numeric or textual.

The data can be of the following types:

TIFF type Data type
TYPE_ASCII String[]
TYPE_SBYTE byte[]
TYPE_BYTE byte[]
TYPE_SSHORT short[]
TYPE_SHORT char[]
TYPE_SLONG int[]
TYPE_LONG long[]
TYPE_FLOAT float[]
TYPE_DOUBLE double[]
TYPE_SRATIONALint[][]
TYPE_RATIONAL long[][]
TYPE_UNDEFINEDbyte[]
Since:
8.1.06
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The ASCII type, with data represented as an array of Strings.
    static final int
    The unsigned byte type (8 bits), with data represented as an array of shorts.
    static final int
    The float type (64 bits IEEE), with data represented as an array of doubles.
    static final int
    The float type (32 bits IEEE), with data represented as an array of floats.
    static final int
    The type for a 32-bit pointer to an image file directory.
    static final int
    The type for a 64-bit pointer to an image file directory.
    static final int
    The unsigned long type (32 bits), with data represented as an array of longs.
    static final int
    The unsigned rational type (2x32 bits), with data represented as an array containing arrays of two longs.
    static final int
    The signed byte type (8 bits), with data represented as an array of bytes.
    static final int
    The unsigned short type (16 bits), with data represented as an array of ints.
    static final int
    The signed long type (32 bits), with data represented as an array of ints.
    static final int
    The signed rational type (2x32 bits), with data represented as an array containing arrays of two ints.
    static final int
    The signed short type (16 bits), with data represented as an array of shorts.
    static final int
    The undefined type, with data represented as an array of bytes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TLcdGeoTIFFField(int aTag, int aType, int aCount, Object aData)
    Creates a new TLcdGeoTIFFField containing the specified tag and values.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of data values of this field.
    Returns the data (value or values) contained in this field.
    Returns the (first) numeric value, if this field has a numeric type.
    getNumericValue(int aIndex)
    Returns the numeric value at the specified index, if this field has a numeric type.
    Returns the (first) string value, if this field has an ASCII type.
    getStringValue(int aIndex)
    Returns the string value at the specified index, if this field has an ASCII type.
    int
    Returns the tag (key) of this field.
    int
    Returns the type of the data of this field.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • TYPE_ASCII

      public static final int TYPE_ASCII
      The ASCII type, with data represented as an array of Strings.
      See Also:
    • TYPE_SBYTE

      public static final int TYPE_SBYTE
      The signed byte type (8 bits), with data represented as an array of bytes.
      See Also:
    • TYPE_BYTE

      public static final int TYPE_BYTE
      The unsigned byte type (8 bits), with data represented as an array of shorts.
      See Also:
    • TYPE_SSHORT

      public static final int TYPE_SSHORT
      The signed short type (16 bits), with data represented as an array of shorts.
      See Also:
    • TYPE_SHORT

      public static final int TYPE_SHORT
      The unsigned short type (16 bits), with data represented as an array of ints.
      See Also:
    • TYPE_SLONG

      public static final int TYPE_SLONG
      The signed long type (32 bits), with data represented as an array of ints.
      See Also:
    • TYPE_LONG

      public static final int TYPE_LONG
      The unsigned long type (32 bits), with data represented as an array of longs.
      See Also:
    • TYPE_FLOAT

      public static final int TYPE_FLOAT
      The float type (32 bits IEEE), with data represented as an array of floats.
      See Also:
    • TYPE_DOUBLE

      public static final int TYPE_DOUBLE
      The float type (64 bits IEEE), with data represented as an array of doubles.
      See Also:
    • TYPE_SRATIONAL

      public static final int TYPE_SRATIONAL
      The signed rational type (2x32 bits), with data represented as an array containing arrays of two ints.
      See Also:
    • TYPE_RATIONAL

      public static final int TYPE_RATIONAL
      The unsigned rational type (2x32 bits), with data represented as an array containing arrays of two longs.
      See Also:
    • TYPE_UNDEFINED

      public static final int TYPE_UNDEFINED
      The undefined type, with data represented as an array of bytes.
      See Also:
    • TYPE_IFD_POINTER

      public static final int TYPE_IFD_POINTER
      The type for a 32-bit pointer to an image file directory.
      See Also:
    • TYPE_IFD8_POINTER

      public static final int TYPE_IFD8_POINTER
      The type for a 64-bit pointer to an image file directory.
      See Also:
  • Constructor Details

    • TLcdGeoTIFFField

      public TLcdGeoTIFFField(int aTag, int aType, int aCount, Object aData)
      Creates a new TLcdGeoTIFFField containing the specified tag and values.
      Parameters:
      aTag - the TIFF tag
      aType - one of TYPE_ASCII, TYPE_SBYTE, etc.
      aCount - the number of data values.
      aData - the TIFF data, presented as an array of the proper data type.
  • Method Details

    • getTag

      public int getTag()
      Returns the tag (key) of this field.
    • getType

      public int getType()
      Returns the type of the data of this field.
      Returns:
      one of TYPE_ASCII, TYPE_SBYTE, etc.
    • getCount

      public int getCount()
      Returns the number of data values of this field.
      Returns:
      the number of data values.
    • getData

      public Object getData()
      Returns the data (value or values) contained in this field.
      Returns:
      an array of the type that is determined by the type property.
    • getNumericValue

      public Number getNumericValue()
      Returns the (first) numeric value, if this field has a numeric type.
      Returns:
      the numeric value.
    • getNumericValue

      public Number getNumericValue(int aIndex)
      Returns the numeric value at the specified index, if this field has a numeric type.
      Parameters:
      aIndex - the index of the numeric value.
      Returns:
      the numeric value.
    • getStringValue

      public String getStringValue()
      Returns the (first) string value, if this field has an ASCII type.
      Returns:
      the string value.
    • getStringValue

      public String getStringValue(int aIndex)
      Returns the string value at the specified index, if this field has an ASCII type.
      Parameters:
      aIndex - the index of the string value.
      Returns:
      the string value.
    • toString

      public String toString()
      Overrides:
      toString in class Object