org.geotools.utils.imageoverviews
Class OverviewsEmbedder
java.lang.Object
org.geotools.utils.progress.ProgressManager
org.geotools.utils.progress.BaseArgumentsManager
org.geotools.utils.imageoverviews.OverviewsEmbedder
- All Implemented Interfaces:
- java.lang.Runnable, java.util.EventListener, ProcessingEventListener
public class OverviewsEmbedder
- extends BaseArgumentsManager
- implements java.lang.Runnable, ProcessingEventListener
Example of usage:
OverviewsEmbedder -s "/usr/home/tmp" -w *.tiff -t "512,512" -f 32 -n 8 -a nn -c 512
<pre>
HINT: Take more memory as the 64Mb default by using the following Java Options<BR/>
-Xmx1024M - Xms512M
@author Simone Giannecchini (GeoSolutions)
@author Alessio Fabiani (GeoSolutions)
@since 2.3.x
@version 0.3
Field Summary |
static java.util.List<java.lang.String> |
scalingAlgorithms
Static immutable ap for scaling algorithms. |
Methods inherited from class org.geotools.utils.progress.BaseArgumentsManager |
addOption, addOptions, finishInitialization, getOptionValue, getOptionValue, getPriority, getTileCacheSize, getToolName, getVersion, hasOption, hasOption, removeOption, removeOptions, setUseImageIOCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scalingAlgorithms
public static final java.util.List<java.lang.String> scalingAlgorithms
- Static immutable ap for scaling algorithms.
OverviewsEmbedder
public OverviewsEmbedder()
- Simple constructor for a pyramid generator. Use the input string in order
to read an image.
getDownsampleStep
public int getDownsampleStep()
setDownsampleStep
public void setDownsampleStep(int downsampleWH)
getSourcePath
public java.lang.String getSourcePath()
setSourcePath
public void setSourcePath(java.lang.String sourcePath)
getTileHeight
public int getTileHeight()
setTileHeight
public void setTileHeight(int tileHeight)
getTileWidth
public int getTileWidth()
setTileWidth
public void setTileWidth(int tileWidth)
setBorderExtender
public void setBorderExtender(javax.media.jai.BorderExtender borderExtender)
setInterp
public void setInterp(javax.media.jai.Interpolation interp)
getLowPassFilter
public float[] getLowPassFilter()
setLowPassFilter
public void setLowPassFilter(float[] lowPassFilter)
run
public void run()
- Description copied from class:
ProgressManager
- This method is responsible for doing the actual processing.
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in class ProgressManager
getNotification
public void getNotification(ProcessingEvent event)
- Specified by:
getNotification
in interface ProcessingEventListener
exceptionOccurred
public void exceptionOccurred(ExceptionEvent event)
- Specified by:
exceptionOccurred
in interface ProcessingEventListener
parseArgs
public boolean parseArgs(java.lang.String[] args)
- Overrides:
parseArgs
in class BaseArgumentsManager
main
public static void main(java.lang.String[] args)
throws java.lang.IllegalArgumentException,
java.io.IOException,
java.lang.InterruptedException
- This tool is designed to be used by the command line using this main
class but it can also be used from an GUI by using the setters and
getters.
- Parameters:
args
-
- Throws:
java.io.IOException
java.lang.IllegalArgumentException
java.lang.InterruptedException
setWildcardString
public final void setWildcardString(java.lang.String wildcardString)
- Sets the wildcar string to use.
- Parameters:
wildcardString
- the wildcardString to set
getCompressionRatio
public final double getCompressionRatio()
getCompressionScheme
public final java.lang.String getCompressionScheme()
setCompressionRatio
public final void setCompressionRatio(double compressionRatio)
setCompressionScheme
public final void setCompressionScheme(java.lang.String compressionScheme)
getTileW
public int getTileW()
setTileW
public void setTileW(int tileW)
getTileH
public int getTileH()
setTileH
public void setTileH(int tileH)
getScaleAlgorithm
public java.lang.String getScaleAlgorithm()
setScaleAlgorithm
public void setScaleAlgorithm(java.lang.String scaleAlgorithm)
getNumSteps
public int getNumSteps()
setNumSteps
public void setNumSteps(int numSteps)
getWriteProgressListener
public org.geotools.utils.imageoverviews.OverviewsEmbedder.OverviewsEmbedderWriteProgressListener getWriteProgressListener()
getWildcardString
public java.lang.String getWildcardString()
getScalingAlgorithms
public static java.util.List<java.lang.String> getScalingAlgorithms()
getInterp
public javax.media.jai.Interpolation getInterp()
Copyright © 1996-2010 Geotools. All Rights Reserved.