org.opengis.coverage
Class PointOutsideCoverageException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by CannotEvaluateException
                  extended by PointOutsideCoverageException
All Implemented Interfaces:
Serializable

@UML(identifier="CV_PointOutsideCoverage",
     specification=OGC_01004)
public class PointOutsideCoverageException
extends CannotEvaluateException

Thrown when a evaluate method is invoked for a location outside the domain of the coverage.

Since:
GeoAPI 1.0
Author:
Martin Desruisseaux (IRD), Alexander Petkov
See Also:
Coverage.evaluate(DirectPosition, byte[]), Coverage.evaluate(DirectPosition, double[]), Serialized Form

Constructor Summary
PointOutsideCoverageException()
          Creates an exception with no message.
PointOutsideCoverageException(String message)
          Creates an exception with the specified message.
 
Method Summary
 DirectPosition getOffendingLocation()
          Returns the direct position which is outside the domain of the coverage.
 void setOffendingLocation(DirectPosition location)
          Sets the direct position which is outside the domain of the coverage.
 
Methods inherited from class CannotEvaluateException
getCoverage, setCoverage
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PointOutsideCoverageException

public PointOutsideCoverageException()
Creates an exception with no message.


PointOutsideCoverageException

public PointOutsideCoverageException(String message)
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.
Method Detail

getOffendingLocation

@Extension
public DirectPosition getOffendingLocation()
Returns the direct position which is outside the domain of the coverage.

Returns:
The position outside the coverage, or null if unknown.
Since:
GeoAPI 2.2

setOffendingLocation

@Extension
public void setOffendingLocation(DirectPosition location)
Sets the direct position which is outside the domain of the coverage.

Parameters:
location - The position outside the coverage, or null if unknown.
Since:
GeoAPI 2.2


Copyright © 1996-2014 Geotools. All Rights Reserved.