deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.coverage.raster.utils
Class RasterBuilder

java.lang.Object
  extended by org.deegree.coverage.raster.utils.RasterBuilder

public class RasterBuilder
extends Object

The RasterBuilder recursively enters a given directory and creates a TiledRaster from found image files.

Version:
$Revision: 21986 $, $Date: 2010-01-18 14:48:18 +0100 (Mo, 18 Jan 2010) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Constructor Summary
RasterBuilder()
           
 
Method Summary
static MultiResolutionRaster buildMultiResolutionRaster(File resolutionDirectory, boolean recursive, RasterIOOptions options)
          Create a MultiResolutionRaster with the origin or the world coordinate of each raster file, defined by the given RasterGeoReference.OriginLocation
static MultiResolutionRaster buildMultiResolutionRaster(List<File> resolutionDirectories, boolean recursive, RasterIOOptions options)
           
static AbstractRaster buildTiledRaster(File directory, boolean recursive, RasterIOOptions options)
          Scan the given directory (recursively) for files with given extension and create a tiled raster from them.
static double getPixelResolution(Double resolution, File resolutionDir)
          Get the resolution from the resolution or if no value was configured try to get it from the name of the directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterBuilder

public RasterBuilder()
Method Detail

buildMultiResolutionRaster

public static MultiResolutionRaster buildMultiResolutionRaster(File resolutionDirectory,
                                                               boolean recursive,
                                                               RasterIOOptions options)
Create a MultiResolutionRaster with the origin or the world coordinate of each raster file, defined by the given RasterGeoReference.OriginLocation

Parameters:
resolutionDirectory - locating the different resolutions
recursive - if the sub directories of the resolution directories should be scanned as well
options - containing information on the loading of the raster data.
Returns:
a MultiResolutionRaster filled with TiledRasters or null if the resolutionDirectory is not a directory.

buildMultiResolutionRaster

public static MultiResolutionRaster buildMultiResolutionRaster(List<File> resolutionDirectories,
                                                               boolean recursive,
                                                               RasterIOOptions options)
Parameters:
resolutionDirectories - locating the different resolutions
recursive - if the sub directories of the resolution directories should be scanned as well
options - containing values for the loading of the raster data.
Returns:
a MultiResolutionRaster filled with TiledRasters

getPixelResolution

public static double getPixelResolution(Double resolution,
                                        File resolutionDir)
Get the resolution from the resolution or if no value was configured try to get it from the name of the directory.

Parameters:
resolution -
resolutionDir -
Returns:
the resolution from the configuration if missing from the directory name, if not parse-able return NaN

buildTiledRaster

public static AbstractRaster buildTiledRaster(File directory,
                                              boolean recursive,
                                              RasterIOOptions options)
Scan the given directory (recursively) for files with given extension and create a tiled raster from them. The tile raster will use an IndexedMemoryTileContainer. The options should define an RasterIOOptions.OPT_FORMAT to be used as file extension which will be case insensitive extension of the files to to scan for

Parameters:
directory -
recursive - if true sub directories will be scanned as well.
options - containing information on the data
Returns:
a new TiledRaster or null if no raster files were found at the given location, with the given extension.

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>