gistoolkit.datasources.imagefile
Class RasterCatalogCreator

java.lang.Object
  extended bygistoolkit.datasources.imagefile.RasterCatalogCreator

public class RasterCatalogCreator
extends java.lang.Object

Class to take a directory of images and tfw files and create a RasterCatalog from them.


Field Summary
 EnvelopeBuffer myEnvelopeBuffer
          The buffer to use to aggregate the envelopes.
(package private)  int[] myResolutions
          The resolutions to break the images into.
 
Constructor Summary
RasterCatalogCreator()
          Creates a new instance of RasterCatalogCreator
RasterCatalogCreator(java.lang.String inFileLocation)
          Creates a new instance of RasterCatalogCreator
 
Method Summary
 void doConvert()
          Convert the images.
 java.lang.String getDestinationImageDirectory()
          Get the location of the source directory containing the images to convert.
 int getMaxWidth()
          Get the maximum width of an image.
 java.lang.String getOutputType()
          Get the type to write.
 int[] getResolutions()
          Get the resolutions to break the images into.
 java.lang.String getSourceImageDirectory()
          Get the location of the source directory containing the images to convert.
 java.lang.String[] getSupportedOutputTypes()
          Return the supported output types.
 void notify(java.lang.String inFile, int inResolution, int inX, int inY)
          Notify the application of a status change.
 void setDestinationImageDirectory(java.lang.String inDestinationImageDirectory)
          Set the location of the source directory containing the images to convert.
 void setMaxWidth(int inMaxWidth)
          Set the maximum width of an image.
 void setOutputType(java.lang.String inOutputType)
          Set the type to write.
 void setRasterCatalogCreatorApplication(RasterCatalogCreatorApplication inRasterCatalogCreatorApplication)
          Set the application for notification.
 void setResolutions(int[] inResolutions)
          Set the resolutions to break the images into.
 void setSourceImageDirectory(java.lang.String inSourceImageDirectory)
          Set the location of the source directory containing the images to convert.
 void setStopProcessing(boolean inStopProcessing)
          Set the status of the stop processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myResolutions

int[] myResolutions
The resolutions to break the images into.


myEnvelopeBuffer

public EnvelopeBuffer myEnvelopeBuffer
The buffer to use to aggregate the envelopes.

Constructor Detail

RasterCatalogCreator

public RasterCatalogCreator()
Creates a new instance of RasterCatalogCreator


RasterCatalogCreator

public RasterCatalogCreator(java.lang.String inFileLocation)
                     throws java.io.FileNotFoundException
Creates a new instance of RasterCatalogCreator

Method Detail

getSourceImageDirectory

public java.lang.String getSourceImageDirectory()
Get the location of the source directory containing the images to convert.


setSourceImageDirectory

public void setSourceImageDirectory(java.lang.String inSourceImageDirectory)
                             throws java.io.FileNotFoundException
Set the location of the source directory containing the images to convert.

Throws:
java.io.FileNotFoundException

getDestinationImageDirectory

public java.lang.String getDestinationImageDirectory()
Get the location of the source directory containing the images to convert.


setDestinationImageDirectory

public void setDestinationImageDirectory(java.lang.String inDestinationImageDirectory)
                                  throws java.io.FileNotFoundException
Set the location of the source directory containing the images to convert.

Throws:
java.io.FileNotFoundException

setMaxWidth

public void setMaxWidth(int inMaxWidth)
Set the maximum width of an image.


getMaxWidth

public int getMaxWidth()
Get the maximum width of an image.


setResolutions

public void setResolutions(int[] inResolutions)
Set the resolutions to break the images into.


getResolutions

public int[] getResolutions()
Get the resolutions to break the images into.


setOutputType

public void setOutputType(java.lang.String inOutputType)
Set the type to write.


getOutputType

public java.lang.String getOutputType()
Get the type to write.


setStopProcessing

public void setStopProcessing(boolean inStopProcessing)
Set the status of the stop processing.


getSupportedOutputTypes

public java.lang.String[] getSupportedOutputTypes()
Return the supported output types.


doConvert

public void doConvert()
               throws java.lang.Exception
Convert the images.

Throws:
java.lang.Exception

setRasterCatalogCreatorApplication

public void setRasterCatalogCreatorApplication(RasterCatalogCreatorApplication inRasterCatalogCreatorApplication)
Set the application for notification.


notify

public void notify(java.lang.String inFile,
                   int inResolution,
                   int inX,
                   int inY)
Notify the application of a status change.