org.geotools.utils.imagepyramid
Class PyramidBuilder

java.lang.Object
  extended by org.geotools.utils.progress.ProgressManager
      extended by org.geotools.utils.progress.BaseArgumentsManager
          extended by org.geotools.utils.imagepyramid.PyramidBuilder
All Implemented Interfaces:
java.lang.Runnable, java.util.EventListener, ProcessingEventListener

public class PyramidBuilder
extends BaseArgumentsManager
implements java.lang.Runnable, ProcessingEventListener

Given an original image, builds an image pyramid out of it by combining the various tiler, mosaic and pyramid layer builder tools.

 Example of use:
   PyramidBuilder -s "/usr/home/data/home.tif" -f 2 -n 4 -t "25,25" -w
 

Since:
2.3.x
Author:
Andrea Aime, Simone Giannecchini, GeoSolutions.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.geotools.utils.progress.ProgressManager
ProgressManager.ProgressEventDispatchThreadEventLauncher
 
Field Summary
 
Fields inherited from class org.geotools.utils.progress.BaseArgumentsManager
argumentBuilder, DEFAULT_IMAGEIO_CACHING_BEHAVIOUR, DEFAULT_PRIORITY, DEFAULT_TILE_CACHE_SIZE, optionBuilder
 
Constructor Summary
PyramidBuilder()
          Simple constructor for a pyramid generator.
 
Method Summary
 void exceptionOccurred(ExceptionEvent event)
           
 double getCompressionRatio()
           
 java.lang.String getCompressionScheme()
           
 int getInternalTileHeight()
           
 int getInternalTileWidth()
           
 void getNotification(ProcessingEvent event)
           
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 setCompressionRatio(double compressionRatio)
           
 void setCompressionScheme(java.lang.String compressionScheme)
           
 void setInternalTileHeight(int internalTileHeight)
           
 void setInternalTileWidth(int internalTileWidth)
           
 
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
 

Constructor Detail

PyramidBuilder

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

Method Detail

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

getCompressionRatio

public double getCompressionRatio()

getCompressionScheme

public java.lang.String getCompressionScheme()

setCompressionRatio

public void setCompressionRatio(double compressionRatio)

setCompressionScheme

public void setCompressionScheme(java.lang.String compressionScheme)

getInternalTileHeight

public int getInternalTileHeight()

getInternalTileWidth

public int getInternalTileWidth()

setInternalTileHeight

public void setInternalTileHeight(int internalTileHeight)

setInternalTileWidth

public void setInternalTileWidth(int internalTileWidth)

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


Copyright © 1996-2010 Geotools. All Rights Reserved.