|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.tools.coverage.rtb.RasterTreeBuilder
public class RasterTreeBuilder
This class builds a raster tree for input files.
| Constructor Summary | |
|---|---|
RasterTreeBuilder(RasterIOOptions options,
ICRS dstSRS,
File dstDir,
int maxTileSize,
InterpolationType interpolation)
Creates a new RasterTreeBuilder. |
|
| Method Summary | |
|---|---|
void |
buildRasterTree(AbstractRaster srcRaster,
int numOfLevels)
Builds a raster tree for the input files- |
InterpolationType |
getInterpolation()
|
RasterIOOptions |
getIOOptions()
|
int |
getTileSize()
|
void |
setBackgroundValue(byte[] backgroundValue)
Sets the background value. |
void |
setBaseEnvelope(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 |
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 |
|---|
public RasterTreeBuilder(RasterIOOptions options,
ICRS dstSRS,
File dstDir,
int maxTileSize,
InterpolationType interpolation)
set*()-methods for further options.
options - needed for reading the raster filesdstSRS - the target crsdstDir - the output directory of the raster treemaxTileSize - the max tile sizeinterpolation - the raster interpolation| Method Detail |
|---|
public void setOverwriteExistingFiles(boolean overwrite)
overwrite - public void setBaseEnvelope(Envelope env)
env - public void setBaseResolution(float baseResolution)
baseResolution - resolution in units/pxpublic void setForceTileSize(boolean force)
force - public void setBackgroundValue(byte[] backgroundValue)
backgroundValue - public void setOutputFormat(String outputFormat)
outputFormat - public void setNumThreads(int num)
num - the number of threads to use in parallel for loading and processing
public void buildRasterTree(AbstractRaster srcRaster,
int numOfLevels)
throws TransformationException,
IllegalArgumentException,
UnknownCRSException,
IOException
srcRaster - array with filenamesnumOfLevels - number of raster levels, use -1 for automatic calculation of the number
TransformationException
UnknownCRSException
IllegalArgumentException
IOExceptionpublic int getTileSize()
public InterpolationType getInterpolation()
public RasterIOOptions getIOOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||