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

org.deegree.tools.coverage.rtb
Class RasterTreeBuilder

java.lang.Object
  extended by org.deegree.tools.coverage.rtb.RasterTreeBuilder

public class RasterTreeBuilder
extends Object

This class builds a raster tree for input files.

Version:
$Revision: 20450 $, $Date: 2009-10-29 11:42:19 +0100 (Do, 29 Okt 2009) $
Author:
Oliver Tonnhofer, last edited by: $Author: rbezema $

Constructor Summary
RasterTreeBuilder(org.deegree.crs.CRS srcSRS, org.deegree.crs.CRS dstSRS, File dstDir, int maxTileSize, org.deegree.coverage.raster.interpolation.InterpolationType interpolation, org.deegree.coverage.raster.geom.RasterGeoReference.OriginLocation originlocation)
          Creates a new RasterTreeBuilder.
 
Method Summary
 void buildRasterTree(List<File> files, int numOfLevels)
          Builds a raster tree for the input files-
 org.deegree.coverage.raster.interpolation.InterpolationType getInterpolation()
           
 org.deegree.coverage.raster.geom.RasterGeoReference.OriginLocation getOriginlocation()
           
 int getTileSize()
           
static void main(String[] args)
          Prints a warning that this is not a command line tool.
 void setBackgroundValue(byte[] backgroundValue)
          Sets the background value.
 void setBaseEnvelope(org.deegree.geometry.Envelope env)
          Set the envelope of the first level.
 void setBaseResolution(float baseResolution)
          Set the target resolution of the the first level.
 void setForceTileSize(boolean force)
          Set if the maxTileSize should be forced to be the actual size.
 void setNumThreads(int num)
           
 void setOriginlocation(org.deegree.coverage.raster.geom.RasterGeoReference.OriginLocation originlocation)
           
 void setOutputFormat(String outputFormat)
          Sets the format for the output raster files.
 void setOverwriteExistingFiles(boolean overwrite)
          Set if existing tiles should be replaced (default is true).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterTreeBuilder

public RasterTreeBuilder(org.deegree.crs.CRS srcSRS,
                         org.deegree.crs.CRS dstSRS,
                         File dstDir,
                         int maxTileSize,
                         org.deegree.coverage.raster.interpolation.InterpolationType interpolation,
                         org.deegree.coverage.raster.geom.RasterGeoReference.OriginLocation originlocation)
Creates a new RasterTreeBuilder. See the additional set*()-methods for further options.

Parameters:
srcSRS - the SRS of the source raster
dstSRS - the target SRS of the raster tree
dstDir - the output directory of the raster tree
maxTileSize - the max tile size
interpolation - the raster interpolation
originlocation - world location of the upper left pixel.
Method Detail

main

public static void main(String[] args)
Prints a warning that this is not a command line tool.

Parameters:
args -

setOverwriteExistingFiles

public void setOverwriteExistingFiles(boolean overwrite)
Set if existing tiles should be replaced (default is true).

Parameters:
overwrite -

setBaseEnvelope

public void setBaseEnvelope(org.deegree.geometry.Envelope env)
Set the envelope of the first level.

Parameters:
env -

setBaseResolution

public void setBaseResolution(float baseResolution)
Set the target resolution of the the first level.

Parameters:
baseResolution - resolution in units/px

setForceTileSize

public void setForceTileSize(boolean force)
Set if the maxTileSize should be forced to be the actual size.

Parameters:
force -

setBackgroundValue

public void setBackgroundValue(byte[] backgroundValue)
Sets the background value.

Parameters:
backgroundValue -

setOutputFormat

public void setOutputFormat(String outputFormat)
Sets the format for the output raster files.

Parameters:
outputFormat -

setNumThreads

public void setNumThreads(int num)
Parameters:
num - the number of threads to use in parallel for loading and processing

buildRasterTree

public void buildRasterTree(List<File> files,
                            int numOfLevels)
                     throws org.deegree.crs.exceptions.TransformationException,
                            IllegalArgumentException,
                            org.deegree.crs.exceptions.UnknownCRSException
Builds a raster tree for the input files-

Parameters:
files - array with filenames
numOfLevels - number of raster levels, use -1 for automatic calculation of the number
Throws:
org.deegree.crs.exceptions.TransformationException
org.deegree.crs.exceptions.UnknownCRSException
IllegalArgumentException

getTileSize

public int getTileSize()
Returns:
the tileSize

getInterpolation

public org.deegree.coverage.raster.interpolation.InterpolationType getInterpolation()
Returns:
the interpolation

setOriginlocation

public void setOriginlocation(org.deegree.coverage.raster.geom.RasterGeoReference.OriginLocation originlocation)
Parameters:
originlocation - the originlocation to set

getOriginlocation

public org.deegree.coverage.raster.geom.RasterGeoReference.OriginLocation getOriginlocation()
Returns:
the originlocation

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

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

]]>