org.geotools.coverage
Class OrdinateOutsideCoverageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.opengis.coverage.CannotEvaluateException
                  extended by org.opengis.coverage.PointOutsideCoverageException
                      extended by org.geotools.coverage.OrdinateOutsideCoverageException
All Implemented Interfaces:
java.io.Serializable

public class OrdinateOutsideCoverageException
extends org.opengis.coverage.PointOutsideCoverageException

Thrown when an evaluate(...) method method is invoked with a point outside coverage. This subclass of PointOutsideCoverage exception is used when the dimension of the out-of-bounds ordinate is known.

Since:
2.1
Version:
$Id: OrdinateOutsideCoverageException.java 30643 2008-06-12 18:27:03Z acuster $
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form

Constructor Summary
OrdinateOutsideCoverageException(java.lang.String message, int dimension)
          Creates an exception with the specified message.
OrdinateOutsideCoverageException(java.lang.String message, int dimension, org.opengis.geometry.Envelope envelope)
          Creates an exception with the specified message.
 
Method Summary
 org.opengis.geometry.Envelope getCoverageEnvelope()
          Returns the coverage envelope, or null if unknown.
 int getOutOfBoundsDimension()
          Returns the dimension of the out-of-bounds ordinate.
 
Methods inherited from class org.opengis.coverage.PointOutsideCoverageException
getOffendingLocation, setOffendingLocation
 
Methods inherited from class org.opengis.coverage.CannotEvaluateException
getCoverage, setCoverage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

OrdinateOutsideCoverageException

public OrdinateOutsideCoverageException(java.lang.String message,
                                        int dimension)
Creates an exception with the specified message.

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
dimension - The dimension of the out-of-bounds ordinate.

OrdinateOutsideCoverageException

public OrdinateOutsideCoverageException(java.lang.String message,
                                        int dimension,
                                        org.opengis.geometry.Envelope envelope)
Creates an exception with the specified message.

Parameters:
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
dimension - The dimension of the out-of-bounds ordinate.
envelope - The coverage envelope, or null if unknown.
Since:
2.3
Method Detail

getOutOfBoundsDimension

public int getOutOfBoundsDimension()
Returns the dimension of the out-of-bounds ordinate.


getCoverageEnvelope

public org.opengis.geometry.Envelope getCoverageEnvelope()
Returns the coverage envelope, or null if unknown.

Since:
2.3


Copyright © 1996-2010 Geotools. All Rights Reserved.