org.geotools.gce.geotiff
Class GeoTiffException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.geotools.gce.geotiff.GeoTiffException
All Implemented Interfaces:
java.io.Serializable

public class GeoTiffException
extends java.io.IOException

This exception is thrown when the problem with reading the GeoTiff file has to do with constructing either the raster to model transform, or the coordinate system. A GeoTiffException:

This exception is expected to be thrown when there is absolutely nothing wrong with the GeoTiff file which produced it. In this case, the exception is reporting an unsupported coordinate system description or raster to model transform, or some other unrecognized configuration of the GeoTIFF tags. By doing so, it attempts to record enough information so that the maintainers can support it in the future.

Author:
Bryce Nordgren / USDA Forest Service
See Also:
Serialized Form

Constructor Summary
GeoTiffException(GeoTiffIIOMetadataAdapter metadata)
          Creates a new instance of GeoTiffException without detail message.
GeoTiffException(GeoTiffIIOMetadataAdapter metadata, java.lang.String msg)
          Constructs an instance of GeoTiffException with the specified detail message.
 
Method Summary
 GeoTiffIIOMetadataAdapter.GeoKeyRecord[] getGeoKeys()
          Getter for property geoKeys.
 java.lang.String getMessage()
           
 double[] getModelPixelScales()
          Getter for property modelPixelScales.
 double[] getModelTiePoints()
          Getter for property modelTiePoints.
 double[] getModelTransformation()
          Getter for property modelTransformation.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoTiffException

public GeoTiffException(GeoTiffIIOMetadataAdapter metadata)
Creates a new instance of GeoTiffException without detail message.

Parameters:
metadata - The metadata from the GeoTIFF image causing the error.

GeoTiffException

public GeoTiffException(GeoTiffIIOMetadataAdapter metadata,
                        java.lang.String msg)
Constructs an instance of GeoTiffException with the specified detail message.

Parameters:
metadata - The metadata from the GeoTIFF image causing the error.
msg - the detail message.
Method Detail

getModelPixelScales

public double[] getModelPixelScales()
Getter for property modelPixelScales.

Returns:
Value of property modelPixelScales.

getModelTiePoints

public double[] getModelTiePoints()
Getter for property modelTiePoints.

Returns:
Value of property modelTiePoints.

getModelTransformation

public double[] getModelTransformation()
Getter for property modelTransformation.

Returns:
Value of property modelTransformation.

getGeoKeys

public GeoTiffIIOMetadataAdapter.GeoKeyRecord[] getGeoKeys()
Getter for property geoKeys.

Returns:
Value of property geoKeys.

getMessage

public java.lang.String getMessage()


Copyright © GeoTools. All Rights Reserved.