org.intamap.generators
Class GeoTIFFGenerator

java.lang.Object
  extended by org.intamap.generators.GeoTIFFGenerator

public class GeoTIFFGenerator
extends Object

Generates GeoTIFF(s) from an interpolate response representing each of the sets of predicted values. The colour scheme of the images can be modified.

Author:
Richard Jones

Constructor Summary
GeoTIFFGenerator()
          Creates a new GeoTIFF generator with the default colour.
GeoTIFFGenerator(Colour colour)
          Creates a new GeoTIFF generator with the given colour.
 
Method Summary
 void generateGeoTIFF(InterpolateResponse response, File outputFile, org.uncertml.statistics.Statistic statistic)
          Generates a GeoTIFF for a single set of predicted values using min/max values derived from the range of the set.
 void generateGeoTIFF(InterpolateResponse response, File outputFile, org.uncertml.statistics.Statistic statistic, double min, double max)
          Generates a GeoTIFF for a single set of predicted values using the given min/max values.
 ArrayList<File> generateGeoTIFFs(InterpolateResponse response, File outputDir)
          Generates GeoTIFFs for each set of predicted values using min/max values derived from the range of each set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoTIFFGenerator

public GeoTIFFGenerator()
Creates a new GeoTIFF generator with the default colour.


GeoTIFFGenerator

public GeoTIFFGenerator(Colour colour)
Creates a new GeoTIFF generator with the given colour.

Parameters:
colour - the colour
Method Detail

generateGeoTIFF

public void generateGeoTIFF(InterpolateResponse response,
                            File outputFile,
                            org.uncertml.statistics.Statistic statistic)
                     throws GeneratorException,
                            IOException
Generates a GeoTIFF for a single set of predicted values using min/max values derived from the range of the set.

Parameters:
response - the interpolate response to generate from
outputFile - the file to write
statistic - the predicted values statistic to generate for
Throws:
GeneratorException - if the domain in the response is not a grid or does not have a coordinate system
IOException - if I/O errors occur whilst writing the file

generateGeoTIFF

public void generateGeoTIFF(InterpolateResponse response,
                            File outputFile,
                            org.uncertml.statistics.Statistic statistic,
                            double min,
                            double max)
                     throws GeneratorException,
                            IOException
Generates a GeoTIFF for a single set of predicted values using the given min/max values.

Parameters:
response - the interpolate response to generate from
outputFile - the file to write
statistic - the predicted values statistic to generate for
min - the minimum value
max - the maximum value
Throws:
GeneratorException - if the domain in the response is not a grid or does not have a coordinate system
IOException - if I/O errors occur whilst writing the file

generateGeoTIFFs

public ArrayList<File> generateGeoTIFFs(InterpolateResponse response,
                                        File outputDir)
                                 throws GeneratorException,
                                        IOException
Generates GeoTIFFs for each set of predicted values using min/max values derived from the range of each set.

Parameters:
response - the interpolate response to generate from
outputDir - the directory to write the files to
Returns:
the list of files generated
Throws:
GeneratorException - if the domain in the response is not a grid or does not have a coordinate system
IOException - if I/O errors occur whilst writing the file