gistoolkit.datasources.imagefile
Class ImageUtilities

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

public class ImageUtilities
extends java.lang.Object

Class to contain code common to image files their reading/writing and manipulation.


Constructor Summary
ImageUtilities()
          Creates a new instance of ImageUtilities
 
Method Summary
static Envelope calculateEnvelope(java.io.File inTFWFile, ImageInformation inImageInformation)
          Calculate the envelope given the TFWFile.
static Envelope loadEnvelope(java.io.File inTFWFile, java.io.File inImageFile)
          Check for a world file from which to load the Envelope.
static ImageInformation readImageInformation(java.io.File inFile)
          Read the image information for this image.
static void writeWorldFile(java.io.File inOutputFile, Envelope inEnvelope, double inXDimen, double inYDimen)
          Calculate the envelope given the TFWFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtilities

public ImageUtilities()
Creates a new instance of ImageUtilities

Method Detail

readImageInformation

public static ImageInformation readImageInformation(java.io.File inFile)
Read the image information for this image.


calculateEnvelope

public static Envelope calculateEnvelope(java.io.File inTFWFile,
                                         ImageInformation inImageInformation)
                                  throws java.lang.Exception
Calculate the envelope given the TFWFile.

Throws:
java.lang.Exception

writeWorldFile

public static void writeWorldFile(java.io.File inOutputFile,
                                  Envelope inEnvelope,
                                  double inXDimen,
                                  double inYDimen)
                           throws java.lang.Exception
Calculate the envelope given the TFWFile.

Throws:
java.lang.Exception

loadEnvelope

public static Envelope loadEnvelope(java.io.File inTFWFile,
                                    java.io.File inImageFile)
                             throws java.lang.Exception
Check for a world file from which to load the Envelope.

Throws:
java.lang.Exception