org.deegree_impl.io.imgapi
Class IMGReader

java.lang.Object
  extended byorg.deegree_impl.io.imgapi.IMGReader

public class IMGReader
extends java.lang.Object

Author:
Andreas Poth

Field Summary
static int BYTE
           
static int DOUBLE
           
private  java.lang.String fileName
           
static int FLOAT
           
private  int height
           
static int INT
           
static int SMALLINT
           
private  GeoTransform trans
           
private  int type
           
private  int width
           
 
Constructor Summary
IMGReader(java.lang.String fileName, int width, int height, GM_Envelope bbox, int type)
          Creates a new instance of IMGReader
 
Method Summary
 float[][] read(GM_Envelope bbox)
          reads a rectangular subset from the image
private  float[][] readByte(GM_Envelope bbox)
           
private  float[][] readDouble(GM_Envelope bbox)
           
private  float[][] readFloat(GM_Envelope bbox)
           
private  float[][] readInt(GM_Envelope bbox)
           
private  float[][] readSmallInt(GM_Envelope bbox)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

IMGReader

public IMGReader(java.lang.String fileName,
                 int width,
                 int height,
                 GM_Envelope bbox,
                 int type)
Creates a new instance of IMGReader

Method Detail

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