org.geotools.arcsde.raster.info
Class RasterDatasetInfo
Object
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)
- Module:
Method Summary |
RasterBandInfo |
getBand(int rasterIndex,
int bandIndex)
|
IndexColorModel |
getColorMap(int rasterIndex)
|
CoordinateReferenceSystem |
getCoverageCrs()
|
GeneralEnvelope |
getGridEnvelope(int rasterIndex,
int pyramidLevel)
|
Rectangle |
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,
Rectangle requestedDim)
|
GeneralEnvelope |
getOriginalEnvelope()
|
GeneralGridEnvelope |
getOriginalGridRange()
|
String[] |
getRasterColumns()
|
Long |
getRasterId(int rasterIndex)
|
int |
getRasterIndex(Long rasterId)
|
String |
getRasterTable()
|
MathTransform |
getRasterToModel()
|
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)
|
Point |
getTileOffset(int rasterIndex,
int pyramidLevel)
|
int |
getTileWidth(long rasterId)
|
boolean |
isColorMapped()
|
void |
setPyramidInfo(List<RasterInfo> pyramidInfo)
|
String |
toString()
|
RasterDatasetInfo
public RasterDatasetInfo()
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 GeneralGridEnvelope getOriginalGridRange()
- Returns:
- the originalGridRange for the whole raster dataset, based on the first raster in the
raster dataset
getRasterToModel
public MathTransform getRasterToModel()
getOriginalEnvelope
public GeneralEnvelope getOriginalEnvelope()
- 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 Rectangle 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,
Rectangle requestedDim)
getRasterIndex
public int getRasterIndex(Long rasterId)
getResolution
public double[] getResolution(int rasterN,
int pyramidLevel)
getTileOffset
public Point getTileOffset(int rasterIndex,
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
Copyright © 1996-2010 Geotools. All Rights Reserved.