deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.ecwapi
Class ECWReader

java.lang.Object
  extended by org.deegree.io.ecwapi.ECWReader

public class ECWReader
extends Object

ECWReader.java

Version:
1.0 2003-11-06
Author:
Herman Assink, last edited by: $Author: mschneider $

Constructor Summary
ECWReader(String fileName)
          read part from ECW-file which falls within env and return this part dimenions width and height
 
Method Summary
 void close()
          Free the memory of the image cache
 BufferedImage getBufferedImage(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
 int getHeight()
          retuns the height of the entire image encapsulated in the ECW file
 int getWidth()
          retuns the width of the entire image encapsulated in the ECW file
static void useECWCache(boolean Use)
          Decide, if to use the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECWReader

public ECWReader(String fileName)
          throws com.ermapper.ecw.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
Throws:
com.ermapper.ecw.JNCSException
Method Detail

useECWCache

public static void useECWCache(boolean Use)
Decide, if to use the cache.

Default is TRUE.


close

public void close()
Free the memory of the image cache


getWidth

public int getWidth()
retuns the width of the entire image encapsulated in the ECW file

Returns:
width of the image

getHeight

public int getHeight()
retuns the height of the entire image encapsulated in the ECW file

Returns:
height of the image

getBufferedImage

public BufferedImage getBufferedImage(Envelope env,
                                      int width,
                                      int height)
                               throws com.ermapper.ecw.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:
com.ermapper.ecw.JNCSException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org