org.gbif.datatester.tests
Interface ExternalGeospatialRasterReader


public interface ExternalGeospatialRasterReader

Interface to encapsulate geospatial data lookup implementations for raster files. Some tests like ElevationErrorTest need to read geospatial raster data. This interface was designed to decouple tests from specific implementations that can perform these operations.

Since tests need to dynamically instantiate them, their constructors should not require any parameters.

Version:
$Revision: 1.1 $
Author:
Alexandre Marino ( marino at cria . org . br ) Renato De Giovanni ( renato at cria . org . br )

Method Summary
 java.lang.Double getValue(java.lang.Double longitude, java.lang.Double latitude, java.lang.String attributeId)
          Returns a cell value given a point and an attribute (raster identification).
 ValueRange getValueRange(java.lang.Double longitude, java.lang.Double latitude, java.lang.Double uncertainty, java.lang.String attributeId)
          Returns a value range given a point, an uncertainty, and an attribute (raster identification).
 

Method Detail

getValue

java.lang.Double getValue(java.lang.Double longitude,
                          java.lang.Double latitude,
                          java.lang.String attributeId)
                          throws TestProcessingException

Returns a cell value given a point and an attribute (raster identification).

Parameters:
longitude - Longitude in decimal degrees (datum WGS84).
latitude - Latitude in decimal degrees (datum WGS84).
attributeId - Raster identifier (typically a file name).
Returns:
Raster cell value.
Throws:
TestProcessingException

getValueRange

ValueRange getValueRange(java.lang.Double longitude,
                         java.lang.Double latitude,
                         java.lang.Double uncertainty,
                         java.lang.String attributeId)
                         throws TestProcessingException

Returns a value range given a point, an uncertainty, and an attribute (raster identification).

Parameters:
longitude - Longitude in decimal degrees (datum WGS84).
latitude - Latitude in decimal degrees (datum WGS84).
uncertainty - Uncertainty value.
attributeId - Raster identifier (typically a file name).
Returns:
Value range object.
Throws:
TestProcessingException