| java.lang.Object org.libtiff.jai.codec.XTIFFDirectory org.geotiff.image.jai.GeoTIFFDirectory
GeoTIFFDirectory | public class GeoTIFFDirectory extends XTIFFDirectory implements java.io.Serializable(Code) | | An extension of the XTIFFDirectory that understands
the structure of the GeoTIFF key set
author: Niles D. Ritter |
Constructor Summary | |
public | GeoTIFFDirectory() | public | GeoTIFFDirectory(SeekableStream stream, long ifd_offset) Constructs a GeoTIFFDirectory by reading a SeekableStream. | public | GeoTIFFDirectory(SeekableStream stream, int directory) Constructs a GeoTIFFDirectory from a SeekableStream. |
GeoTIFFDirectory | public GeoTIFFDirectory()(Code) | | public constructor (for serializability)
|
GeoTIFFDirectory | public GeoTIFFDirectory(SeekableStream stream, long ifd_offset) throws java.io.IOException(Code) | | Constructs a GeoTIFFDirectory by reading a SeekableStream.
The ifd_offset parameter specifies the stream offset from
which to begin reading;
this mechanism is sometimes used to store private IFDs within a
TIFF file that are not part of the normal sequence of IFDs.
|
GeoTIFFDirectory | public GeoTIFFDirectory(SeekableStream stream, int directory) throws java.io.IOException(Code) | | Constructs a GeoTIFFDirectory from a SeekableStream.
The directory parameter specifies which directory to read
from the linked list present in the stream; directory 0 is
normally read but it is possible to store multiple images
in a single TIFF file by maintaing multiple directories.
|
addGeoKey | public void addGeoKey(int key, int type, int count, Object data)(Code) | | Add a geoKey to the directory
|
addGeoKey | public void addGeoKey(XTIFFField geoKey)(Code) | | Add an existing geoKey to the directory.
|
getFields | public XTIFFField[] getFields()(Code) | | Returns an array of XTIFFFields containing all the fields
in this directory. Prior to returning array, determine if
there are any GeoKeys, and if so, set up the corresponding
GeoTIFF fields.
|
getGeoKey | public XTIFFField getGeoKey(int key)(Code) | | Indexed Accessor to the Geokeys,indexed by
the key values.
|
getGeoKeys | public XTIFFField[] getGeoKeys()(Code) | | Returns an array of XTIFFFields containing all the fields
corresponding to the GeoKeys.
|
getPixelScale | public double[] getPixelScale()(Code) | | return the pixel scale tag values
|
getTiepoints | public double[] getTiepoints()(Code) | | return the tiepoint tag values
|
getTransformationMatrix | public double[] getTransformationMatrix()(Code) | | return the transformation matrix tag values
|
setPixelScale | public void setPixelScale(double[] scales)(Code) | | return the pixel scale tag values
|
setTiepoints | public void setTiepoints(double[] tiepoints)(Code) | | set the tiepoint tag values
|
setTransformationMatrix | public void setTransformationMatrix(double[] matrix)(Code) | | return the pixel scale tag values
|
Methods inherited from org.libtiff.jai.codec.XTIFFDirectory | public void addField(int tag, int type, int count, Object obj)(Code)(Java Doc) public void addField(XTIFFField field)(Code)(Java Doc) public static XTIFFDirectory create(SeekableStream stream, int directory) throws IOException(Code)(Java Doc) public static XTIFFDirectory create(SeekableStream stream, long ifd_offset) throws IOException(Code)(Java Doc) public static XTIFFDirectory create()(Code)(Java Doc) public static XTIFFField createField(int tag, int type, int count, Object obj)(Code)(Java Doc) public XTIFFTileCodec createTileCodec(XTIFFDecodeParam param) throws IOException(Code)(Java Doc) public XTIFFTileCodec createTileCodec(XTIFFEncodeParam param) throws IOException(Code)(Java Doc) public int getCompression()(Code)(Java Doc) public XTIFFField getField(int tag)(Code)(Java Doc) public byte getFieldAsByte(int tag, int index)(Code)(Java Doc) public byte getFieldAsByte(int tag)(Code)(Java Doc) public double getFieldAsDouble(int tag, int index)(Code)(Java Doc) public double getFieldAsDouble(int tag)(Code)(Java Doc) public float getFieldAsFloat(int tag, int index)(Code)(Java Doc) public float getFieldAsFloat(int tag)(Code)(Java Doc) public long getFieldAsLong(int tag, int index)(Code)(Java Doc) public long getFieldAsLong(int tag)(Code)(Java Doc) public XTIFFField[] getFields()(Code)(Java Doc) public int getImageType()(Code)(Java Doc) public static int getNumDirectories(SeekableStream stream) throws IOException(Code)(Java Doc) public int getNumEntries()(Code)(Java Doc) public int[] getTags()(Code)(Java Doc) public static XTIFFTileCodec getTileCodec(int comp)(Code)(Java Doc) protected void initialize() throws IOException(Code)(Java Doc) public boolean isBigEndian()(Code)(Java Doc) public boolean isTagPresent(int tag)(Code)(Java Doc) public boolean isTiled()(Code)(Java Doc) protected double readDouble(SeekableStream stream) throws IOException(Code)(Java Doc) public Object readFieldValue(int tag, int type, int count) throws IOException, ArrayIndexOutOfBoundsException(Code)(Java Doc) protected float readFloat(SeekableStream stream) throws IOException(Code)(Java Doc) protected void readHeader() throws IOException(Code)(Java Doc) protected int readInt(SeekableStream stream) throws IOException(Code)(Java Doc) protected long readLong(SeekableStream stream) throws IOException(Code)(Java Doc) protected short readShort(SeekableStream stream) throws IOException(Code)(Java Doc) protected long readUnsignedInt(SeekableStream stream) throws IOException(Code)(Java Doc) protected int readUnsignedShort(SeekableStream stream) throws IOException(Code)(Java Doc) public static void registerTileCodec(int comp, XTIFFTileCodec codec)(Code)(Java Doc) public void setCompression(int compression)(Code)(Java Doc) public static void setFactory(XTIFFFactory fact)(Code)(Java Doc) public void setImageType(int image_type)(Code)(Java Doc) public void setIsTiled(boolean isTiled)(Code)(Java Doc) public int sizeOfType(int type) throws ArrayIndexOutOfBoundsException(Code)(Java Doc) public static void unRegisterTileCodec(int comp)(Code)(Java Doc)
|
|
|