|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.coverage.grid.io.imageio.geotiff.GeoTiffIIOMetadataDecoder
public final class GeoTiffIIOMetadataDecoder
This class provides an abstraction from the details of TIFF data access for the purpose of retrieving GeoTIFFWritingUtilities metadata from an image.
All of the GeoKey values are included here as constants, and the portions of the GeoTIFFWritingUtilities specification pertaining to each have been copied for easy access.
The majority of the possible GeoKey values and their meanings are NOT reproduced here. Only the most important GeoKey code values have been copied, for others see the specification.
Convenience methods have been included to retrieve the various TIFFFields that are not part of the GeoKey directory, such as the Model Transformation and Model TiePoints. Retrieving a GeoKey from the GeoKey directory is a bit more specialized and requires knowledge of the correct key code.
Making use of the geographic metadata still requires some basic understanding of the GeoKey values that is not provided here.
For more information see the GeoTIFFWritingUtilities specification at http://www.remotesensing.org/geotiff/spec/geotiffhome.html
Constructor Summary | |
---|---|
GeoTiffIIOMetadataDecoder(javax.imageio.metadata.IIOMetadata imageMetadata)
The constructor builds a metadata adapter for the image metadata root IIOMetadataNode. |
Method Summary | |
---|---|
java.lang.String |
getGeoKey(int keyID)
Gets a GeoKey value as a String. |
int |
getGeoKeyDirectoryVersion()
Gets the version of the GeoKey directory. |
int |
getGeoKeyMinorRevision()
Gets the minor revision number of the GeoKeys in this metadata. |
GeoKeyEntry |
getGeoKeyRecord(int keyID)
Gets a record containing the four TIFFShort values for a geokey entry. |
GeoKeyEntry |
getGeoKeyRecordByIndex(int index)
Gets a record containing the four TIFFShort values for a geokey entry. |
int |
getGeoKeyRevision()
Gets the revision number of the GeoKeys in this metadata. |
PixelScale |
getModelPixelScales()
Gets the model pixel scales from the correct TIFFField |
TiePoint[] |
getModelTiePoints()
Gets the model tie points from the appropriate TIFFField |
java.awt.geom.AffineTransform |
getModelTransformation()
Gets the model tie points from the appropriate TIFFField |
double |
getNoData()
Gets the noData from the related TIFFField. |
int |
getNumGeoKeys()
Gets the number of GeoKeys in the geokeys directory. |
javax.imageio.metadata.IIOMetadataNode |
getRootNode()
|
boolean |
hasModelTrasformation()
Tells me if the underlying IIOMetadata contains
ModelTransformationTag tag for AffineTransform that map from
Raster Space to World Space. |
boolean |
hasNoData()
Tells me if the underlying IIOMetadata contains NoData Tag. |
boolean |
hasPixelScales()
Tells me if the underlying IIOMetadata contains ModelTiepointTag
tag for TiePoint . |
boolean |
hasTiePoints()
Tells me if the underlying IIOMetadata contains ModelTiepointTag
tag for TiePoint . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeoTiffIIOMetadataDecoder(javax.imageio.metadata.IIOMetadata imageMetadata)
imageMetadata
- The image metadataMethod Detail |
---|
public int getGeoKeyDirectoryVersion()
java.lang.UnsupportedOperationException
- DOCUMENT ME!public int getGeoKeyRevision()
java.lang.UnsupportedOperationException
- DOCUMENT ME!public int getGeoKeyMinorRevision()
java.lang.UnsupportedOperationException
- DOCUMENT ME!public int getNumGeoKeys()
java.lang.UnsupportedOperationException
- DOCUMENT ME!public java.lang.String getGeoKey(int keyID)
keyID
- The numeric ID of the GeoKey
public GeoKeyEntry getGeoKeyRecord(int keyID)
keyID
- DOCUMENT ME!
java.lang.UnsupportedOperationException
- DOCUMENT ME!public GeoKeyEntry getGeoKeyRecordByIndex(int index)
index
- DOCUMENT ME!
java.lang.UnsupportedOperationException
- DOCUMENT ME!public PixelScale getModelPixelScales()
public TiePoint[] getModelTiePoints()
public double getNoData()
hasNoData()
method before calling this method.
Double.NaN
in case of unable to
get noData.public boolean hasTiePoints()
IIOMetadata
contains ModelTiepointTag
tag for TiePoint
.
public boolean hasPixelScales()
IIOMetadata
contains ModelTiepointTag
tag for TiePoint
.
public boolean hasNoData()
IIOMetadata
contains NoData Tag.
GeoTiffConstants#TIFFTAG_NODATA.
public java.awt.geom.AffineTransform getModelTransformation()
Attention, for the moment we support only 2D baseline transformations.
public boolean hasModelTrasformation()
IIOMetadata
contains
ModelTransformationTag tag for AffineTransform
that map from
Raster Space to World Space.
public javax.imageio.metadata.IIOMetadataNode getRootNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |