org.geotools.arcsde.raster.info
Class RasterDatasetInfo

Object
  extended by RasterDatasetInfo

public final class RasterDatasetInfo
extends Object

Wraps metadata information for a raster dataset, whether it is composed of a single raster, or it's raster catalog, and provides some conveinent methods to get to the raster metadata of it's rasters and pyramid levels.

This is the single entry point to the metadata of a raster dataset. The associated classes RasterInfo and PyramidLevelInfo are to be considered private to this class.

Since:
2.5.4
Author:
Gabriel Roldan (OpenGeo)

Constructor Summary
RasterDatasetInfo()
           
 
Method Summary
 int getArcSDEPyramidLevel(Long rasterId, int pyramidLevel)
          Returns the actual ArcSDE pyramid level for the given raster and internal pyramid level, in order to take into acount the fact that if the raster is registered with "skipLevelOne", we don't hold any information for the arcsde pyramid level 1 of this raster.
 RasterBandInfo getBand(int rasterIndex, int bandIndex)
           
 IndexColorModel getColorMap(int rasterIndex)
           
 CoordinateReferenceSystem getCoverageCrs()
           
 GeneralEnvelope getGridEnvelope(int rasterIndex, int pyramidLevel)
           
 GridEnvelope getGridRange(int rasterIndex, int pyramidLevel)
           
 GridSampleDimension[] getGridSampleDimensions()
           
 int getImageHeight()
           
 int getImageWidth()
           
 RasterCellType getNativeCellType()
           
 Number getNoDataValue(int rasterIndex, int bandIndex)
           
 Number getNoDataValue(long rasterId, int bandIndex)
           
 List<Number> getNoDataValues(int rasterIndex)
           
 int getNumBands()
           
 int getNumPyramidLevels(int rasterIndex)
           
 int getNumRasters()
           
 int getNumTilesHigh(int rasterIndex, int pyramidLevel)
           
 int getNumTilesWide(int rasterIndex, int pyramidLevel)
           
 int getOptimalPyramidLevel(int rasterIndex, OverviewPolicy policy, GeneralEnvelope requestedEnvelope, GridEnvelope requestedDim)
           
 GeneralEnvelope getOriginalEnvelope(PixelInCell pixelAnchor)
           
 GridEnvelope getOriginalGridRange()
           
 String[] getRasterColumns()
           
 Long getRasterId(int rasterIndex)
           
 int getRasterIndex(Long rasterId)
           
 String getRasterTable()
           
 MathTransform getRasterToModel()
           
 MathTransform getRasterToModel(int rasterIndex, int pyramidLevel)
           
 ImageTypeSpecifier getRenderedImageSpec(int rasterIndex)
           
 ImageTypeSpecifier getRenderedImageSpec(long rasterId)
           
 double[] getResolution(int rasterN, int pyramidLevel)
           
 RasterCellType getTargetCellType(int rasterIndex)
           
 RasterCellType getTargetCellType(long rasterId)
           
 Dimension getTileDimension(int rasterIndex)
           
 Dimension getTileDimension(long rasterId)
           
 int getTileHeight(long rasterId)
           
 int getTileWidth(long rasterId)
           
 boolean isColorMapped()
           
 void setPyramidInfo(List<RasterInfo> pyramidInfo)
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RasterDatasetInfo

public RasterDatasetInfo()
Method Detail

getRasterTable

public String getRasterTable()
Returns:
the raster table name

getRasterColumns

public String[] getRasterColumns()
Returns:
the raster column names

setPyramidInfo

public void setPyramidInfo(List<RasterInfo> pyramidInfo)
Parameters:
pyramidInfo - the pyramidInfo to set

getGridSampleDimensions

public GridSampleDimension[] getGridSampleDimensions()

getNumBands

public int getNumBands()

getImageWidth

public int getImageWidth()

getImageHeight

public int getImageHeight()

getCoverageCrs

public CoordinateReferenceSystem getCoverageCrs()
Returns:
the coverageCrs

getOriginalGridRange

public GridEnvelope getOriginalGridRange()
Returns:
the originalGridRange for the whole raster dataset, based on the first raster in the raster dataset

getRasterToModel

public MathTransform getRasterToModel()

getRasterToModel

public MathTransform getRasterToModel(int rasterIndex,
                                      int pyramidLevel)

getOriginalEnvelope

public GeneralEnvelope getOriginalEnvelope(PixelInCell pixelAnchor)
Parameters:
pixelAnchor -
Returns:
the originalEnvelope

toString

public String toString()
Overrides:
toString in class Object

getNumRasters

public int getNumRasters()

getBand

public RasterBandInfo getBand(int rasterIndex,
                              int bandIndex)

getNumPyramidLevels

public int getNumPyramidLevels(int rasterIndex)

getGridEnvelope

public GeneralEnvelope getGridEnvelope(int rasterIndex,
                                       int pyramidLevel)

getGridRange

public GridEnvelope getGridRange(int rasterIndex,
                                 int pyramidLevel)

getNumTilesWide

public int getNumTilesWide(int rasterIndex,
                           int pyramidLevel)

getNumTilesHigh

public int getNumTilesHigh(int rasterIndex,
                           int pyramidLevel)

getTileWidth

public int getTileWidth(long rasterId)

getTileHeight

public int getTileHeight(long rasterId)

getTileDimension

public Dimension getTileDimension(long rasterId)

getTileDimension

public Dimension getTileDimension(int rasterIndex)

getRenderedImageSpec

public ImageTypeSpecifier getRenderedImageSpec(long rasterId)

getRenderedImageSpec

public ImageTypeSpecifier getRenderedImageSpec(int rasterIndex)

getColorMap

public IndexColorModel getColorMap(int rasterIndex)

isColorMapped

public boolean isColorMapped()

getNativeCellType

public RasterCellType getNativeCellType()

getTargetCellType

public RasterCellType getTargetCellType(int rasterIndex)

getTargetCellType

public RasterCellType getTargetCellType(long rasterId)

getRasterId

public Long getRasterId(int rasterIndex)

getOptimalPyramidLevel

public int getOptimalPyramidLevel(int rasterIndex,
                                  OverviewPolicy policy,
                                  GeneralEnvelope requestedEnvelope,
                                  GridEnvelope requestedDim)

getRasterIndex

public int getRasterIndex(Long rasterId)

getResolution

public double[] getResolution(int rasterN,
                              int pyramidLevel)

getNoDataValue

public Number getNoDataValue(long rasterId,
                             int bandIndex)

getNoDataValue

public Number getNoDataValue(int rasterIndex,
                             int bandIndex)

getNoDataValues

public List<Number> getNoDataValues(int rasterIndex)
Parameters:
rasterIndex - the raster for which bands to return the no data values
Returns:
the list of no data values, one per band for the raster at index rasterIndex

getArcSDEPyramidLevel

public int getArcSDEPyramidLevel(Long rasterId,
                                 int pyramidLevel)
Returns the actual ArcSDE pyramid level for the given raster and internal pyramid level, in order to take into acount the fact that if the raster is registered with "skipLevelOne", we don't hold any information for the arcsde pyramid level 1 of this raster.



Copyright © 1996-2014 Geotools. All Rights Reserved.