org.geotools.gce.geotiff.adapters
Class GeoTiffIIOMetadataEncoder

java.lang.Object
  extended by org.geotools.gce.geotiff.adapters.GeoTiffIIOMetadataEncoder

public final class GeoTiffIIOMetadataEncoder
extends java.lang.Object

This class is responsible for encoding the geotiff tags into suitable metadata for the ImageIO library.

Basically it is and encoder/adapter that collects all the different tags, order it accordingly to the spec and then organize then into a dom tree ready to be used by the ImageIO metadata mechanism.

Since:
2.3
Author:
Simone Giannecchini, GeoSolutions

Constructor Summary
GeoTiffIIOMetadataEncoder()
           
GeoTiffIIOMetadataEncoder(int geoTIFFVersion, int keyRevisionMajor, int keyRevisionMinor)
           
 
Method Summary
 void addGeoAscii(int keyID, java.lang.String value)
           
 void addGeoDoubleParam(int keyID, double value)
           
 void addGeoDoubleParams(int keyID, double[] values)
           
 void addGeoShortParam(int keyID, int value)
           
 void addModelTiePoint(double i, double j, double x, double y)
           
 void addModelTiePoint(double i, double j, double k, double x, double y, double z)
           
 void assignTo(org.jdom.Element element)
           
 org.jdom.Element createRootTree()
           
 java.lang.String getGeoAsciiParam(int keyID)
           
protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getGeoAsciiParamsTag()
           
 double getGeoDoubleParam(int keyID)
           
 double[] getGeoDoubleParams(int keyID)
           
 double[] getGeoDoubleParams(int keyID, double[] values)
           
protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getGeoDoubleParamsTag()
           
protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getGeoKeyDirectoryTag()
           
 GeoKeyEntry getGeoKeyEntry(int keyID)
           
 GeoKeyEntry getGeoKeyEntryAt(int index)
           
 int getGeoShortParam(int keyID)
           
 int getGeoTIFFVersion()
           
 int getKeyRevisionMajor()
           
 int getKeyRevisionMinor()
           
protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getModelPixelScaleTag()
           
 double getModelPixelScaleX()
           
 double getModelPixelScaleY()
           
 double getModelPixelScaleZ()
           
 TiePoint getModelTiePoint()
           
 TiePoint getModelTiePointAt(int index)
           
protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getModelTiePointTag()
           
protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getModelTransformationTag()
           
 double getNoData()
           
protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getNoDataTag()
           
 int getNumGeoKeyEntries()
           
 int getNumModelTiePoints()
           
 boolean hasGeoKeyEntry(int keyID)
           
static boolean isTiffUShort(int value)
           
 void setGeoTIFFVersion(int version)
           
 void setKeyRevision(int major, int minor)
           
 void setModelPixelScale(double x, double y)
           
 void setModelPixelScale(double x, double y, double z)
           
 void setModelTiePoint(double i, double j, double x, double y)
           
 void setModelTiePoint(double i, double j, double k, double x, double y, double z)
           
 void setModelTransformation(java.awt.geom.AffineTransform rasterToModel)
           
 void setNoData(double noData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoTiffIIOMetadataEncoder

public GeoTiffIIOMetadataEncoder()

GeoTiffIIOMetadataEncoder

public GeoTiffIIOMetadataEncoder(int geoTIFFVersion,
                                 int keyRevisionMajor,
                                 int keyRevisionMinor)
Method Detail

isTiffUShort

public static boolean isTiffUShort(int value)

getGeoTIFFVersion

public int getGeoTIFFVersion()

setGeoTIFFVersion

public void setGeoTIFFVersion(int version)

getKeyRevisionMajor

public int getKeyRevisionMajor()

getKeyRevisionMinor

public int getKeyRevisionMinor()

setKeyRevision

public void setKeyRevision(int major,
                           int minor)

getModelPixelScaleX

public double getModelPixelScaleX()

getModelPixelScaleY

public double getModelPixelScaleY()

getModelPixelScaleZ

public double getModelPixelScaleZ()

setModelPixelScale

public void setModelPixelScale(double x,
                               double y)

setModelPixelScale

public void setModelPixelScale(double x,
                               double y,
                               double z)

getNumModelTiePoints

public int getNumModelTiePoints()

getModelTiePoint

public TiePoint getModelTiePoint()

getModelTiePointAt

public TiePoint getModelTiePointAt(int index)

setModelTiePoint

public void setModelTiePoint(double i,
                             double j,
                             double x,
                             double y)

setModelTiePoint

public void setModelTiePoint(double i,
                             double j,
                             double k,
                             double x,
                             double y,
                             double z)

addModelTiePoint

public void addModelTiePoint(double i,
                             double j,
                             double x,
                             double y)

addModelTiePoint

public void addModelTiePoint(double i,
                             double j,
                             double k,
                             double x,
                             double y,
                             double z)

getNumGeoKeyEntries

public int getNumGeoKeyEntries()

getGeoKeyEntryAt

public GeoKeyEntry getGeoKeyEntryAt(int index)

getGeoKeyEntry

public GeoKeyEntry getGeoKeyEntry(int keyID)

hasGeoKeyEntry

public boolean hasGeoKeyEntry(int keyID)

getGeoShortParam

public int getGeoShortParam(int keyID)

getGeoDoubleParam

public double getGeoDoubleParam(int keyID)

getGeoDoubleParams

public double[] getGeoDoubleParams(int keyID)

getGeoDoubleParams

public double[] getGeoDoubleParams(int keyID,
                                   double[] values)

getGeoAsciiParam

public java.lang.String getGeoAsciiParam(int keyID)

addGeoShortParam

public void addGeoShortParam(int keyID,
                             int value)

addGeoDoubleParam

public void addGeoDoubleParam(int keyID,
                              double value)

addGeoDoubleParams

public void addGeoDoubleParams(int keyID,
                               double[] values)

addGeoAscii

public void addGeoAscii(int keyID,
                        java.lang.String value)

assignTo

public void assignTo(org.jdom.Element element)

createRootTree

public org.jdom.Element createRootTree()

getGeoKeyDirectoryTag

protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getGeoKeyDirectoryTag()

getGeoDoubleParamsTag

protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getGeoDoubleParamsTag()

getGeoAsciiParamsTag

protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getGeoAsciiParamsTag()

getModelPixelScaleTag

protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getModelPixelScaleTag()

getModelTiePointTag

protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getModelTiePointTag()

getModelTransformationTag

protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getModelTransformationTag()

getNoDataTag

protected static it.geosolutions.imageio.plugins.tiff.TIFFTag getNoDataTag()

setModelTransformation

public void setModelTransformation(java.awt.geom.AffineTransform rasterToModel)

getNoData

public double getNoData()

setNoData

public void setNoData(double noData)


Copyright © 1996-2010 Geotools. All Rights Reserved.