|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGeoTiffIIOMetadataDecoder
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(IIOMetadata imageMetadata)
The constructor builds a metadata adapter for the image metadata root IIOMetadataNode. |
Method Summary | |
---|---|
String |
getAsciiTIFFTag(String tagID)
Returns the value of an ASCII TIFFTag referred by tagID. |
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. |
int |
getGeoKeyRevision()
Gets the revision number of the GeoKeys in this metadata. |
Collection<GeoKeyEntry> |
getGeoKeys()
Return the GeoKeys. |
PixelScale |
getModelPixelScales()
Gets the model pixel scales from the correct TIFFField |
TiePoint[] |
getModelTiePoints()
Gets the model tie points from the appropriate TIFFField |
AffineTransform |
getModelTransformation()
Gets the model tie points from the appropriate TIFFField Attention, for the moment we support only 2D baseline transformations. |
double |
getNoData()
Gets the noData from the related TIFFField. |
int |
getNumGeoKeys()
Gets the number of GeoKeys in the geokeys directory. |
IIOMetadataNode |
getRootNode()
|
boolean |
hasGeoKey()
Return true if the geokey directory is present, false otherwise. |
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 Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeoTiffIIOMetadataDecoder(IIOMetadata imageMetadata)
imageMetadata
- The image metadataMethod Detail |
---|
public int getGeoKeyDirectoryVersion()
UnsupportedOperationException
- DOCUMENT ME!public int getGeoKeyRevision()
UnsupportedOperationException
- DOCUMENT ME!public int getGeoKeyMinorRevision()
UnsupportedOperationException
- DOCUMENT ME!public int getNumGeoKeys()
UnsupportedOperationException
- DOCUMENT ME!public String getGeoKey(int keyID)
keyID
- The numeric ID of the GeoKey
public GeoKeyEntry getGeoKeyRecord(int keyID)
keyID
- DOCUMENT ME!
UnsupportedOperationException
- DOCUMENT ME!public Collection<GeoKeyEntry> getGeoKeys()
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 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 IIOMetadataNode getRootNode()
public boolean hasGeoKey()
true
if the geokey directory is present, false
otherwise. In case no geokey dir is present no CRS can be
constructed from this set of metadata.
A prj can be used otherwise.
true
if the geokey directory is present, false
otherwise.public String getAsciiTIFFTag(String tagID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |