| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.tools.raster.RasterTreeBuilderIndexed
public class RasterTreeBuilderIndexed
This class represents a RasterTreeBuilder object.
 It wcan be used to create a resolution pyramid from one or more already existing raster dataset (image). The
 resulting pyramid will be described by a set of shapes (containing the image tiles bounding boxes) and a XML coverage
 description document that can be used with the deegree WCS. The RTB supports real images like png, tif, jpeg, bmp and
 gif as well as raw data image like 16Bit and 32Bit tif-images without color model. 
 because of the large amount of data that may be process by the RTB it makes use of a caching mechnism. For this the
 ehcache project is used. One can configure the cache behavior by placing a file named ehcache.xml defining a cache
 named 'imgCache' within the class root when starting the RTB. (For details please see the ehcache documentation). If
 no ehcache.xml is available default cache configuration will be used which is set to:
 
| Nested Class Summary | |
|---|---|
(package private) static class | 
RasterTreeBuilderIndexed.DFileFilter
class: official version of a FilenameFilter  | 
| Constructor Summary | |
|---|---|
RasterTreeBuilderIndexed(List<String> imageFiles,
                                                 String outputDir,
                                                 String baseName,
                                                 String outputFormat,
                                                 double maxTileSize,
                                                 String srs,
                                                 String interpolation,
                                                 WorldFile.TYPE worldFileType,
                                                 float quality,
                                                 String bgColor,
                                                 int depth,
                                                 double resolution,
                                                 float offset,
                                                 float scaleFactor)
 | 
|
RasterTreeBuilderIndexed(List<String> imageFiles,
                                                 String outputDir,
                                                 String baseName,
                                                 String outputFormat,
                                                 double maxTileSize,
                                                 String srs,
                                                 String interpolation,
                                                 WorldFile.TYPE worldFileType,
                                                 float quality,
                                                 String bgColor,
                                                 int depth,
                                                 double resolution,
                                                 float offset,
                                                 float scaleFactor,
                                                 boolean dummy)
 | 
|
| Method Summary | |
|---|---|
static Object | 
createInterpolation(String interpolation)
 | 
static void | 
drawImage(BufferedImage out,
                   float[][] data,
                   javax.media.jai.RenderedOp image,
                   Tile tile,
                   WorldFile wf,
                   double minimumRes,
                   Object interpolation,
                   Map<String,String> imageFilesErrors,
                   String outputFormat,
                   int bitDepth,
                   float offset,
                   float scaleFactor)
Draws an image map to the target tile considering defined interpolation method for rescaling.  | 
 void | 
init(Envelope env,
         double resolution)
 | 
 void | 
logCollectedErrors()
 | 
static void | 
main(String[] args)
 | 
static BufferedImage | 
resize(BufferedImage source,
             int destWidth,
             int destHeight,
             Object interpolation)
 | 
 void | 
setEnvelope(Envelope bbox)
sets the bounding box used for tiling  | 
 void | 
setResolution(double resolution)
sets the resolution level to be used for tiling  | 
 void | 
start()
starts creating of a raster tile level using the current bbox and resolution  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RasterTreeBuilderIndexed(List<String> imageFiles,
                                String outputDir,
                                String baseName,
                                String outputFormat,
                                double maxTileSize,
                                String srs,
                                String interpolation,
                                WorldFile.TYPE worldFileType,
                                float quality,
                                String bgColor,
                                int depth,
                                double resolution,
                                float offset,
                                float scaleFactor,
                                boolean dummy)
imageFiles - outputDir - baseName - outputFormat - maxTileSize - srs - interpolation - worldFileType - quality - bgColor - depth - resolution - offset - scaleFactor - dummy - 
public RasterTreeBuilderIndexed(List<String> imageFiles,
                                String outputDir,
                                String baseName,
                                String outputFormat,
                                double maxTileSize,
                                String srs,
                                String interpolation,
                                WorldFile.TYPE worldFileType,
                                float quality,
                                String bgColor,
                                int depth,
                                double resolution,
                                float offset,
                                float scaleFactor)
imageFiles - outputDir - baseName - outputFormat - maxTileSize - srs - interpolation - worldFileType - quality - bgColor - depth - resolution - offset - scaleFactor - | Method Detail | 
|---|
public void logCollectedErrors()
                        throws IOException
IOException
public void start()
           throws Exception
Exception
public void init(Envelope env,
                 double resolution)
          throws Exception
env - resolution - 
IndexException
Exceptionpublic void setResolution(double resolution)
resolution - public void setEnvelope(Envelope bbox)
bbox - 
public static void drawImage(BufferedImage out,
                             float[][] data,
                             javax.media.jai.RenderedOp image,
                             Tile tile,
                             WorldFile wf,
                             double minimumRes,
                             Object interpolation,
                             Map<String,String> imageFilesErrors,
                             String outputFormat,
                             int bitDepth,
                             float offset,
                             float scaleFactor)
RasterTreeUpdater.
out - target image tiledata - image - source image maptile - tile description, must contain the envelope of the target imagewf - must contain the envelope of the TiledImage of the source imageminimumRes - the minimum resolution of input imagesinterpolation - the interpolation methodimageFilesErrors - a mapping between image files and errorsoutputFormat - the output formatbitDepth - the output bit depthoffset - offset used if bitDepth = 16 and outputFormat = rawscaleFactor - scale factor used if bitDepth = 16 and outputFormat = raw
public static BufferedImage resize(BufferedImage source,
                                   int destWidth,
                                   int destHeight,
                                   Object interpolation)
public static Object createInterpolation(String interpolation)
interpolation - 
public static void main(String[] args)
                 throws Exception
args - Example arguments to pass when calling are:
            Exception
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org