public class GeoTIFF extends Object
| Constructor and Description |
|---|
GeoTIFF() |
| Modifier and Type | Method and Description |
|---|---|
static IIOImage |
createIIOImage(ImageWriter writer,
RenderedImage im,
GeoTIFFMetadata geoTIFFMetadata)
Creates IIO image instance given image and GeoTIFF metadata.
|
static IIOMetadata |
createIIOMetadata(ImageWriter writer,
ImageTypeSpecifier type,
GeoTIFFMetadata geoTIFFMetadata)
Creates image metadata which complies to the GeoTIFF specification for the given image writer, image type and
GeoTIFF metadata.
|
static IIOMetadata |
createIIOMetadata(ImageWriter writer,
ImageTypeSpecifier type,
GeoTIFFMetadata geoTIFFMetadata,
String metadataFormatName,
String classNameList)
Creates image metadata which complies to the GeoTIFF specification for the given image writer, image type and
GeoTIFF metadata.
|
static ImageWriter |
getImageWriter(ImageTypeSpecifier imageType)
Gets an image writer suitable to be used for GeoTIFF.
|
static ImageWriter |
getImageWriter(RenderedImage image)
Gets an image writer suitable to be used for GeoTIFF.
|
static boolean |
writeImage(RenderedImage image,
File outputFile,
GeoTIFFMetadata geoTIFFMetadata)
Writes an image using an arbitrary
ImageWriter that supports the GeoTIFF format to a
File. |
static boolean |
writeImage(RenderedImage image,
ImageOutputStream outputStream,
GeoTIFFMetadata geoTIFFMetadata)
Writes an image using an arbitrary
ImageWriter that supports the GeoTIFF format to an
ImageOutputStream. |
public static boolean writeImage(RenderedImage image, File outputFile, GeoTIFFMetadata geoTIFFMetadata) throws IOException
ImageWriter that supports the GeoTIFF format to a
File. If there is already a File present, its contents are discarded.image - a RenderedImage to be written. name of the format.outputFile - a File to be written to.geoTIFFMetadata - the GeoTIFF specific metadatafalse if no appropriate image I/O writer was found.IllegalArgumentException - if any parameter is null.IOException - if an error occurs during writing.public static boolean writeImage(RenderedImage image, ImageOutputStream outputStream, GeoTIFFMetadata geoTIFFMetadata) throws IOException
ImageWriter that supports the GeoTIFF format to an
ImageOutputStream. The image is written to the ImageOutputStream starting at the
current stream pointer, overwriting existing stream data from that point forward, if present.image - a RenderedImage to be written.outputStream - an ImageOutputStream to be written to.geoTIFFMetadata - the GeoTIFF specific metadatafalse if no appropriate writer is found.IllegalArgumentException - if any parameter is null.IOException - if an error occurs during writing.public static ImageWriter getImageWriter(RenderedImage image)
image - the image to be written laternull if no writer is foundpublic static ImageWriter getImageWriter(ImageTypeSpecifier imageType)
imageType - the type of the image to be written laternull if no writer is foundpublic static IIOImage createIIOImage(ImageWriter writer, RenderedImage im, GeoTIFFMetadata geoTIFFMetadata) throws IIOException
writer - the image writer, must not be nullim - the image, must not be nullgeoTIFFMetadata - the GeoTIFF metadata, must not be nullIIOException - if the metadata cannot be createdpublic static IIOMetadata createIIOMetadata(ImageWriter writer, ImageTypeSpecifier type, GeoTIFFMetadata geoTIFFMetadata) throws IIOException
writer - the image writer, must not be nulltype - the image type, must not be nullgeoTIFFMetadata - the GeoTIFF metadata, must not be nullIIOException - if the metadata cannot be createdpublic static IIOMetadata createIIOMetadata(ImageWriter writer, ImageTypeSpecifier type, GeoTIFFMetadata geoTIFFMetadata, String metadataFormatName, String classNameList) throws IIOException
writer - the image writer, must not be nulltype - the image type, must not be nullgeoTIFFMetadata - the GeoTIFF metadata, must not be nullmetadataFormatName - the name of the Metadata Format specificationclassNameList - comma separated list of Metadata classesIIOException - if the metadata cannot be createdCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.