| java.lang.Object org.deegree.tools.raster.RasterTreeBuilder
RasterTreeBuilder | public class RasterTreeBuilder (Code) | | 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:
- maxElementsInMemory = 10
- memoryStoreEvictionPolicy = LFU
- overflowToDisk = false (notice that overflow to disk is not supported because cached objects
are not serializable)
- eternal = false
- timeToLiveSeconds = 3600
- timeToIdleSeconds = 3600
author: Judit Mays author: Andreas Poth author: last edited by: $Author: apoth $ version: 2.0, $Revision: 9815 $, $Date: 2008-01-29 12:41:59 -0800 (Tue, 29 Jan 2008) $ since: 2.0 |
Constructor Summary | |
public | RasterTreeBuilder(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) |
Method Summary | |
public static Interpolation | createInterpolation(String interpolation) | public static void | drawImage(BufferedImage out, float[][] data, TiledImage image, Tile tile, WorldFile wf, double minimumRes, Interpolation 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. | public void | init(Envelope env, double resolution) | public void | logCollectedErrors() | public static void | main(String[] args) | public void | setEnvelope(Envelope bbox) | public void | setResolution(double resolution) | public void | start() |
RasterTreeBuilder | public RasterTreeBuilder(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)(Code) | | Parameters: imageFiles - Parameters: outputDir - Parameters: baseName - Parameters: outputFormat - Parameters: maxTileSize - Parameters: srs - Parameters: interpolation - Parameters: worldFileType - Parameters: quality - Parameters: bgColor - Parameters: depth - Parameters: resolution - Parameters: offset - Parameters: scaleFactor - |
createInterpolation | public static Interpolation createInterpolation(String interpolation)(Code) | | an interpolation object from a well known name Parameters: interpolation - |
drawImage | public static void drawImage(BufferedImage out, float[][] data, TiledImage image, Tile tile, WorldFile wf, double minimumRes, Interpolation interpolation, Map<String, String> imageFilesErrors, String outputFormat, int bitDepth, float offset, float scaleFactor)(Code) | | Draws an image map to the target tile considering defined interpolation method for rescaling.
This method is static so it can be used easily from the RasterTreeUpdater .
Parameters: out - target image tile Parameters: data - Parameters: image - source image map Parameters: tile - tile description, must contain the envelope of the target image Parameters: wf - must contain the envelope of the TiledImage of the source image Parameters: minimumRes - the minimum resolution of input images Parameters: interpolation - the interpolation method Parameters: imageFilesErrors - a mapping between image files and errors Parameters: outputFormat - the output format Parameters: bitDepth - the output bit depth Parameters: offset - offset used if bitDepth = 16 and outputFormat = raw Parameters: scaleFactor - scale factor used if bitDepth = 16 and outputFormat = raw |
init | public void init(Envelope env, double resolution)(Code) | | Parameters: env - Parameters: resolution - |
main | public static void main(String[] args) throws Exception(Code) | | Parameters: args - Example arguments to pass when calling are:- -mapFiles D:/temp/europe_DK.jpg,D:/temp/europe_BeNeLux.jpg
- -outDir D:/temp/out/
- -baseName pretty
- -outputFormat png
- -maxTileSize 600
throws: Exception - |
setEnvelope | public void setEnvelope(Envelope bbox)(Code) | | sets the bounding box used for tiling
Parameters: bbox - |
setResolution | public void setResolution(double resolution)(Code) | | sets the resolution level to be used for tiling
Parameters: resolution - |
start | public void start() throws Exception(Code) | | starts creating of a raster tile level using the current bbox and resolution
throws: Exception - |
|
|