org.deegree_impl.io.imgapi
Class IMGReader
java.lang.Object
org.deegree_impl.io.imgapi.IMGReader
- public class IMGReader
- extends java.lang.Object
- Author:
- Andreas Poth
Constructor Summary |
IMGReader(java.lang.String fileName,
int width,
int height,
GM_Envelope bbox,
int type)
Creates a new instance of IMGReader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BYTE
public static final int BYTE
- See Also:
- Constant Field Values
SMALLINT
public static final int SMALLINT
- See Also:
- Constant Field Values
INT
public static final int INT
- See Also:
- Constant Field Values
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
fileName
private java.lang.String fileName
width
private int width
height
private int height
type
private int type
trans
private GeoTransform trans
IMGReader
public IMGReader(java.lang.String fileName,
int width,
int height,
GM_Envelope bbox,
int type)
- Creates a new instance of IMGReader
read
public float[][] read(GM_Envelope bbox)
throws java.io.IOException
- reads a rectangular subset from the image
- Throws:
java.io.IOException
readByte
private float[][] readByte(GM_Envelope bbox)
throws java.io.IOException
- Throws:
java.io.IOException
readSmallInt
private float[][] readSmallInt(GM_Envelope bbox)
throws java.io.IOException
- Throws:
java.io.IOException
readInt
private float[][] readInt(GM_Envelope bbox)
throws java.io.IOException
- Throws:
java.io.IOException
readFloat
private float[][] readFloat(GM_Envelope bbox)
throws java.io.IOException
- Throws:
java.io.IOException
readDouble
private float[][] readDouble(GM_Envelope bbox)
throws java.io.IOException
- Throws:
java.io.IOException