org.geotools.gce.geotiff
Class GeoTiffWriter

Object
  extended by AbstractGridCoverageWriter
      extended by GeoTiffWriter
All Implemented Interfaces:
GridCoverageWriter

public final class GeoTiffWriter
extends AbstractGridCoverageWriter
implements GridCoverageWriter

Author:
Simone Giannecchini
Module:
trunk/gt/plugin   (gt-plugin.jar) (Maven report) (SVN head)

Field Summary
 
Fields inherited from class AbstractGridCoverageWriter
destination, hints, outStream
 
Constructor Summary
GeoTiffWriter(Object destination)
          Constructor for a GeoTiffWriter.
GeoTiffWriter(Object destination, Hints hints)
          Constructor for a GeoTiffWriter.
 
Method Summary
static IIOMetadata createGeoTiffIIOMetadata(ImageWriter writer, ImageTypeSpecifier type, GeoTiffIIOMetadataEncoder geoTIFFMetadata, ImageWriteParam params)
          Creates image metadata which complies to the GeoTIFFWritingUtilities specification for the given image writer, image type and GeoTIFFWritingUtilities metadata.
 Format getFormat()
           
 void write(GridCoverage gc, GeneralParameterValue[] params)
           
 
Methods inherited from class AbstractGridCoverageWriter
dispose, finalize, getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface GridCoverageWriter
dispose, getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
 

Constructor Detail

GeoTiffWriter

public GeoTiffWriter(Object destination)
              throws IOException
Constructor for a GeoTiffWriter.

Parameters:
destination -
Throws:
IOException

GeoTiffWriter

public GeoTiffWriter(Object destination,
                     Hints hints)
              throws IOException
Constructor for a GeoTiffWriter.

Parameters:
destination -
hints -
Throws:
IOException
Method Detail

getFormat

public Format getFormat()
Specified by:
getFormat in interface GridCoverageWriter

write

public void write(GridCoverage gc,
                  GeneralParameterValue[] params)
           throws IllegalArgumentException,
                  IOException,
                  IndexOutOfBoundsException
Specified by:
write in interface GridCoverageWriter
Throws:
IllegalArgumentException
IOException
IndexOutOfBoundsException

createGeoTiffIIOMetadata

public static final IIOMetadata createGeoTiffIIOMetadata(ImageWriter writer,
                                                         ImageTypeSpecifier type,
                                                         GeoTiffIIOMetadataEncoder geoTIFFMetadata,
                                                         ImageWriteParam params)
                                                  throws IIOException
Creates image metadata which complies to the GeoTIFFWritingUtilities specification for the given image writer, image type and GeoTIFFWritingUtilities metadata.

Parameters:
writer - the image writer, must not be null
type - the image type, must not be null
geoTIFFMetadata - the GeoTIFFWritingUtilities metadata, must not be null
params -
Returns:
the image metadata, never null
Throws:
IIOException - if the metadata cannot be created


Copyright © 1996-2009 Geotools. All Rights Reserved.