org.geotools.arcsde.raster.info
Class RasterInfo

Object
  extended by RasterInfo

public final class RasterInfo
extends Object

A RasterInfo gathers the metadata for a single raster in a raster dataset

Basically, it wraps the SeRasterAttr object and implements some convenience methods for doing calculations with it.

Author:
Saul Farber, Gabriel Roldan

Constructor Summary
RasterInfo(Long rasterId, int tileWidth, int tileHeight)
          Don't use this constructor.
 
Method Summary
 void addPyramidLevel(int level, ReferencedEnvelope extent, Point imgOffset, Point2D extOffset, int numTilesWide, int numTilesHigh, Dimension imageSize)
          Don't use this method.
 RasterBandInfo getBand(int index)
           
 List<RasterBandInfo> getBands()
           
 CoordinateReferenceSystem getCoordinateReferenceSystem()
           
 RasterCellType getNativeCellType()
           
 List<Number> getNoDataValues()
           
 int getNumBands()
           
 int getNumLevels()
           
 int getOptimalPyramidLevel(OverviewPolicy policy, double[] requestedRes)
           NOTE: logic stolen and adapted from AbstractGridCoverage2DReader#getOverviewImage()
 GeneralEnvelope getOriginalEnvelope()
           
 PyramidLevelInfo getPyramidLevel(int level)
           
 Long getRasterId()
           
 RasterCellType getTargetCellType()
           
 Dimension getTileDimension()
           
 int getTileHeight()
           
 int getTileWidth()
           
 boolean isColorMapped()
           
 void setBands(List<RasterBandInfo> bands)
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RasterInfo

public RasterInfo(Long rasterId,
                  int tileWidth,
                  int tileHeight)
Don't use this constructor. It only exists for unit testing purposes.

Parameters:
tileWidth - DON'T USE
tileHeight - DON'T USE
Method Detail

getRasterId

public Long getRasterId()

getTileWidth

public int getTileWidth()

getTileHeight

public int getTileHeight()

getTileDimension

public Dimension getTileDimension()

getPyramidLevel

public PyramidLevelInfo getPyramidLevel(int level)

getNumLevels

public int getNumLevels()

getOptimalPyramidLevel

public int getOptimalPyramidLevel(OverviewPolicy policy,
                                  double[] requestedRes)

NOTE: logic stolen and adapted from AbstractGridCoverage2DReader#getOverviewImage()

Parameters:
policy -
Returns:

addPyramidLevel

public void addPyramidLevel(int level,
                            ReferencedEnvelope extent,
                            Point imgOffset,
                            Point2D extOffset,
                            int numTilesWide,
                            int numTilesHigh,
                            Dimension imageSize)
Don't use this method. It's only public for unit testing purposes.

Parameters:
level - the zero-based level index for the new level
extent - the geographical extent the level covers, may need to be offsetted by extOffset
imgOffset - the offset on the X and Y axes of the actual image inside the tile space for this level
extOffset - the offset on the X and Y axes of the actual image inside the tile space for this level
numTilesWide - the number of tiles that make up the level on the X axis
numTilesHigh - the number of tiles that make up the level on the Y axis
imageSize - the size of the actual image in pixels

getOriginalEnvelope

public GeneralEnvelope getOriginalEnvelope()

setBands

public void setBands(List<RasterBandInfo> bands)

getBands

public List<RasterBandInfo> getBands()

getNumBands

public int getNumBands()

getBand

public RasterBandInfo getBand(int index)

getCoordinateReferenceSystem

public CoordinateReferenceSystem getCoordinateReferenceSystem()

getTargetCellType

public RasterCellType getTargetCellType()

isColorMapped

public boolean isColorMapped()

getNativeCellType

public RasterCellType getNativeCellType()

getNoDataValues

public List<Number> getNoDataValues()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2010 Geotools. All Rights Reserved.