org.geotools.gce.geotiff
Class GeoTiffWriter

java.lang.Object
  extended by org.geotools.coverage.grid.io.AbstractGridCoverageWriter
      extended by org.geotools.gce.geotiff.GeoTiffWriter
All Implemented Interfaces:
org.opengis.coverage.grid.GridCoverageWriter

public final class GeoTiffWriter
extends AbstractGridCoverageWriter
implements org.opengis.coverage.grid.GridCoverageWriter

AbstractGridCoverageWriter implementation for the geotiff format.

Author:
Simone Giannecchini, GeoSolutions SAS

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

Constructor Detail

GeoTiffWriter

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

Parameters:
destination -
Throws:
java.io.IOException

GeoTiffWriter

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

Parameters:
destination -
hints -
Throws:
java.io.IOException
Method Detail

getFormat

public org.opengis.coverage.grid.Format getFormat()
Specified by:
getFormat in interface org.opengis.coverage.grid.GridCoverageWriter

write

public void write(org.opengis.coverage.grid.GridCoverage gc,
                  org.opengis.parameter.GeneralParameterValue[] params)
           throws java.lang.IllegalArgumentException,
                  java.io.IOException,
                  java.lang.IndexOutOfBoundsException
Specified by:
write in interface org.opengis.coverage.grid.GridCoverageWriter
Throws:
java.lang.IllegalArgumentException
java.io.IOException
java.lang.IndexOutOfBoundsException

createGeoTiffIIOMetadata

public static final javax.imageio.metadata.IIOMetadata createGeoTiffIIOMetadata(javax.imageio.ImageWriter writer,
                                                                                javax.imageio.ImageTypeSpecifier type,
                                                                                GeoTiffIIOMetadataEncoder geoTIFFMetadata,
                                                                                javax.imageio.ImageWriteParam params)
                                                                         throws javax.imageio.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:
javax.imageio.IIOException - if the metadata cannot be created


Copyright © 1996-2010 Geotools. All Rights Reserved.