|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.arcsde.raster.info.RasterInfo
public final class RasterInfo
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.
Constructor Summary | |
---|---|
RasterInfo(java.lang.Long rasterId,
int tileWidth,
int tileHeight)
Don't use this constructor. |
Method Summary | |
---|---|
void |
addPyramidLevel(int level,
ReferencedEnvelope extent,
java.awt.Point imgOffset,
java.awt.geom.Point2D extOffset,
int numTilesWide,
int numTilesHigh,
java.awt.Dimension imageSize)
Don't use this method. |
RasterBandInfo |
getBand(int index)
|
java.util.List<RasterBandInfo> |
getBands()
|
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
|
RasterCellType |
getNativeCellType()
|
java.util.List<java.lang.Number> |
getNoDataValues()
|
int |
getNumBands()
|
int |
getNumLevels()
|
int |
getOptimalPyramidLevel(OverviewPolicy policy,
double[] requestedRes)
NOTE: logic stolen and adapted from AbstractGridCoverage2DReader#getOverviewImage() |
GeneralEnvelope |
getOriginalEnvelope()
|
org.geotools.arcsde.raster.info.PyramidLevelInfo |
getPyramidLevel(int level)
|
java.lang.Long |
getRasterId()
|
RasterCellType |
getTargetCellType()
|
java.awt.Dimension |
getTileDimension()
|
int |
getTileHeight()
|
int |
getTileWidth()
|
boolean |
isColorMapped()
|
void |
setBands(java.util.List<RasterBandInfo> bands)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RasterInfo(java.lang.Long rasterId, int tileWidth, int tileHeight)
tileWidth
- DON'T USEtileHeight
- DON'T USEMethod Detail |
---|
public java.lang.Long getRasterId()
public int getTileWidth()
public int getTileHeight()
public java.awt.Dimension getTileDimension()
public org.geotools.arcsde.raster.info.PyramidLevelInfo getPyramidLevel(int level)
public int getNumLevels()
public int getOptimalPyramidLevel(OverviewPolicy policy, double[] requestedRes)
NOTE: logic stolen and adapted from AbstractGridCoverage2DReader#getOverviewImage()
policy
-
public void addPyramidLevel(int level, ReferencedEnvelope extent, java.awt.Point imgOffset, java.awt.geom.Point2D extOffset, int numTilesWide, int numTilesHigh, java.awt.Dimension imageSize)
level
- the zero-based level index for the new levelextent
- 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
levelextOffset
- the offset on the X and Y axes of the actual image inside the tile space for this
levelnumTilesWide
- the number of tiles that make up the level on the X axisnumTilesHigh
- the number of tiles that make up the level on the Y axisimageSize
- the size of the actual image in pixelspublic GeneralEnvelope getOriginalEnvelope()
public void setBands(java.util.List<RasterBandInfo> bands)
public java.util.List<RasterBandInfo> getBands()
public int getNumBands()
public RasterBandInfo getBand(int index)
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
public RasterCellType getTargetCellType()
public boolean isColorMapped()
public RasterCellType getNativeCellType()
public java.util.List<java.lang.Number> getNoDataValues()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |