org.deegree_impl.io.ecwapi
Class ECWReader

java.lang.Object
  extended byorg.deegree_impl.io.ecwapi.ECWReader

public class ECWReader
extends java.lang.Object

ECWReader.java

Version:
1.0 2003-11-06
Author:
Herman Assink

Field Summary
private  JNCSFile ecwFile
           
 
Constructor Summary
ECWReader(java.lang.String fileName)
          read part from ECW-file which falls within env and return this part dimenions width and height
 
Method Summary
 java.awt.image.BufferedImage getBufferedImage(GM_Envelope env, int width, int height)
          read part from ECW-file which falls within env and return this part as BufferedImage with dimenions width and height
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ecwFile

private JNCSFile ecwFile
Constructor Detail

ECWReader

public ECWReader(java.lang.String fileName)
          throws JNCSException
read part from ECW-file which falls within env and return this part dimenions width and height

Parameters:
fileName - full pathname of the ECW-file
Method Detail

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage(GM_Envelope env,
                                                     int width,
                                                     int height)
                                              throws JNCSException
read part from ECW-file which falls within env and return this part as BufferedImage with dimenions width and height

Parameters:
env - bounding box in world coordinates of requested part
width - width of the returned image
height - height of the returned image
Throws:
JNCSException