org.geotools.gce.geotiff
Class GeoTiffWriter
java.lang.Object
org.geotools.coverage.grid.io.AbstractGridCoverageWriter
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
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 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 |
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
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 nulltype
- the image type, must not be nullgeoTIFFMetadata
- the GeoTIFFWritingUtilities metadata, must not be nullparams
-
- Returns:
- the image metadata, never null
- Throws:
javax.imageio.IIOException
- if the metadata cannot be created
Copyright © 1996-2010 Geotools. All Rights Reserved.