|
deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official | |||||||||
| 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(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 |
|---|
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)
set*()-methods for further options.
srcSRS - the SRS of the source rasterdstSRS - the target SRS of the raster treedstDir - the output directory of the raster treemaxTileSize - the max tile sizeinterpolation - the raster interpolationoriginlocation - world location of the upper left pixel.| Method Detail |
|---|
public static void main(String[] args)
args - public void setOverwriteExistingFiles(boolean overwrite)
overwrite - public void setBaseEnvelope(org.deegree.geometry.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(List<File> files,
int numOfLevels)
throws org.deegree.crs.exceptions.TransformationException,
IllegalArgumentException,
org.deegree.crs.exceptions.UnknownCRSException
files - array with filenamesnumOfLevels - number of raster levels, use -1 for automatic calculation of the number
org.deegree.crs.exceptions.TransformationException
org.deegree.crs.exceptions.UnknownCRSException
IllegalArgumentExceptionpublic int getTileSize()
public org.deegree.coverage.raster.interpolation.InterpolationType getInterpolation()
public void setOriginlocation(org.deegree.coverage.raster.geom.RasterGeoReference.OriginLocation originlocation)
originlocation - the originlocation to setpublic org.deegree.coverage.raster.geom.RasterGeoReference.OriginLocation getOriginlocation()
|
deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||