deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.ecwapi
Class ECWReader

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

public class ECWReader
extends java.lang.Object

ECWReader.java

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

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
 void close()
          Free the memory of the image cache
 java.awt.image.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(java.lang.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 java.awt.image.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.5 (2011/06/29 09:44 build-8-official)

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