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

Method Summary
 void addPyramidLevel(int level, int numTilesWide, int numTilesHigh, GridEnvelope gridEnvelope, GeneralEnvelope spatialExtent)
           
 RasterBandInfo getBand(int index)
           
 List<RasterBandInfo> getBands()
           
 CoordinateReferenceSystem getCoordinateReferenceSystem()
           
 RasterCellType getNativeCellType()
           
 List<Number> getNoDataValues()
           
 int getNumBands()
           
 int getNumLevels()
           
 int getOptimalPyramidLevel(OverviewPolicy policy, double[] requestedRes)
          Returns the optimal pyramid level for the requested resolution, ignoring pyramid level 1 if SeRasterAttr.skipLevelOne() was true.
 GeneralEnvelope getOriginalEnvelope()
           
 PyramidLevelInfo getPyramidLevel(int level)
           
 Long getRasterId()
           
 RasterCellType getTargetCellType()
           
 Dimension getTileDimension()
           
 int getTileHeight()
           
 int getTileWidth()
           
 boolean isColorMapped()
           
 boolean isSkipLevelOne()
           
 void setBands(List<RasterBandInfo> bands)
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)
Returns the optimal pyramid level for the requested resolution, ignoring pyramid level 1 if SeRasterAttr.skipLevelOne() was true.

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

Parameters:
policy -
Returns:

addPyramidLevel

public void addPyramidLevel(int level,
                            int numTilesWide,
                            int numTilesHigh,
                            GridEnvelope gridEnvelope,
                            GeneralEnvelope spatialExtent)

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

isSkipLevelOne

public boolean isSkipLevelOne()


Copyright © 1996-2014 Geotools. All Rights Reserved.