org.deegree.coverage.raster.integration
Class CenterOuterTest

java.lang.Object
  extended by org.deegree.coverage.raster.integration.CenterOuterTest
All Implemented Interfaces:
CenterValues, CompareValues
Direct Known Subclasses:
CacheFileTest, GriddedTileContainerTest, SimpleRasterTest, TiledRasterTest

public abstract class CenterOuterTest
extends Object
implements CompareValues

The CenterOuterTest defines raster API integration tests on a tiled raster and a sole simple raster. For each retrieval envelope a centered and outer representation of the raster file(s) is tested. The values tested should not be altered, they are visually tested.

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
protected static GeometryFactory geomFac
          geometry factory to use
protected static Envelope rasterEnvelope
          To verify the coordinates
 
Fields inherited from interface org.deegree.coverage.raster.integration.CompareValues
ALLOVERLAP_OUTER_RESULT, ALLSTRIFE_OUTER_RESULT, LR9OVERLAP_OUTER_RESULT, SOLELROVERLAP_OUTER_RESULT, SOLETOTALOVERLAP_OUTER_RESULT, UL0_OUTER_RESULT, UL01STRIFE_OUTER_RESULT, UL03STRIFE_OUTER_RESULT, UL0INSIDE_OUTER_RESULT, UL0OUTSIDE_OUTER_RESULT, UL0OVERLAP_OUTER_RESULT
 
Fields inherited from interface org.deegree.coverage.raster.integration.CenterValues
ALLOVERLAP_CENTER_RESULT, ALLSTRIFE_CENTER_RESULT, LR9OVERLAP_CENTER_RESULT, SOLELROVERLAP_CENTER_RESULT, SOLETOTALOVERLAP_CENTER_RESULT, UL0_CENTER_RESULT, UL01STRIFE_CENTER_RESULT, UL03STRIFE_CENTER_RESULT, UL0INSIDE_CENTER_RESULT, UL0OUTSIDE_CENTER_RESULT, UL0OVERLAP_CENTER_RESULT
 
Constructor Summary
CenterOuterTest()
           
 
Method Summary
protected abstract  void buildRasters()
          kind of a constructor will be called as initialization.
 void init()
          Init the two rasters
protected  void outputRaster(SimpleRaster raster, String name)
          output the values of the given raster.
 void testValues(BigInteger[] footprint, SimpleRaster raster)
           
protected  void testValues(int[][] reference, SimpleRaster simpleRaster)
           
protected  void writeDebugFile(String prefix, SimpleRaster raster)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geomFac

protected static final GeometryFactory geomFac
geometry factory to use


rasterEnvelope

protected static final Envelope rasterEnvelope
To verify the coordinates

Constructor Detail

CenterOuterTest

public CenterOuterTest()
Method Detail

buildRasters

protected abstract void buildRasters()
                              throws IOException,
                                     NumberFormatException,
                                     URISyntaxException
kind of a constructor will be called as initialization.

Throws:
IOException
URISyntaxException
NumberFormatException

init

public void init()
Init the two rasters


writeDebugFile

protected void writeDebugFile(String prefix,
                              SimpleRaster raster)
Parameters:
prefix -
raster -

outputRaster

protected void outputRaster(SimpleRaster raster,
                            String name)
output the values of the given raster.

Parameters:
raster -
name -

testValues

protected void testValues(int[][] reference,
                          SimpleRaster simpleRaster)
Parameters:
reference -
simpleRaster -

testValues

public void testValues(BigInteger[] footprint,
                       SimpleRaster raster)
Parameters:
footprint -
raster -


Copyright © 2011. All Rights Reserved.