org.geotools.utils.imageoverviews
Class OverviewsEmbedder

java.lang.Object
  extended by org.geotools.utils.progress.ProgressManager
      extended by org.geotools.utils.progress.BaseArgumentsManager
          extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.geotools.utils.progress.ProgressManager
ProgressManager.ProgressEventDispatchThreadEventLauncher
 
Field Summary
static java.util.List<java.lang.String> scalingAlgorithms
          Static immutable ap for scaling algorithms.
 
Fields inherited from class org.geotools.utils.progress.BaseArgumentsManager
argumentBuilder, DEFAULT_IMAGEIO_CACHING_BEHAVIOUR, DEFAULT_PRIORITY, DEFAULT_TILE_CACHE_SIZE, optionBuilder
 
Constructor Summary
OverviewsEmbedder()
          Simple constructor for a pyramid generator.
 
Method Summary
 void exceptionOccurred(ExceptionEvent event)
           
 double getCompressionRatio()
           
 java.lang.String getCompressionScheme()
           
 int getDownsampleStep()
           
 javax.media.jai.Interpolation getInterp()
           
 float[] getLowPassFilter()
           
 void getNotification(ProcessingEvent event)
           
 int getNumSteps()
           
 java.lang.String getScaleAlgorithm()
           
static java.util.List<java.lang.String> getScalingAlgorithms()
           
 java.lang.String getSourcePath()
           
 int getTileH()
           
 int getTileHeight()
           
 int getTileW()
           
 int getTileWidth()
           
 java.lang.String getWildcardString()
           
 org.geotools.utils.imageoverviews.OverviewsEmbedder.OverviewsEmbedderWriteProgressListener getWriteProgressListener()
           
static void main(java.lang.String[] args)
          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.
 boolean parseArgs(java.lang.String[] args)
           
 void run()
          This method is responsible for doing the actual processing.
 void setBorderExtender(javax.media.jai.BorderExtender borderExtender)
           
 void setCompressionRatio(double compressionRatio)
           
 void setCompressionScheme(java.lang.String compressionScheme)
           
 void setDownsampleStep(int downsampleWH)
           
 void setInterp(javax.media.jai.Interpolation interp)
           
 void setLowPassFilter(float[] lowPassFilter)
           
 void setNumSteps(int numSteps)
           
 void setScaleAlgorithm(java.lang.String scaleAlgorithm)
           
 void setSourcePath(java.lang.String sourcePath)
           
 void setTileH(int tileH)
           
 void setTileHeight(int tileHeight)
           
 void setTileW(int tileW)
           
 void setTileWidth(int tileWidth)
           
 void setWildcardString(java.lang.String wildcardString)
          Sets the wildcar string to use.
 
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 org.geotools.utils.progress.ProgressManager
addProcessingEventListener, dispose, fireEvent, fireException, fireException, getStopThread, removeAllProcessingEventListeners, removeProcessingEventListener, stopThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scalingAlgorithms

public static final java.util.List<java.lang.String> scalingAlgorithms
Static immutable ap for scaling algorithms.

Constructor Detail

OverviewsEmbedder

public OverviewsEmbedder()
Simple constructor for a pyramid generator. Use the input string in order to read an image.

Method Detail

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.