|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectRasterInfo
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(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 |
---|
public RasterInfo(Long rasterId, int tileWidth, int tileHeight)
tileWidth
- DON'T USEtileHeight
- DON'T USEMethod Detail |
---|
public Long getRasterId()
public int getTileWidth()
public int getTileHeight()
public Dimension getTileDimension()
public 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, Point imgOffset, Point2D extOffset, int numTilesWide, int numTilesHigh, 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(List<RasterBandInfo> bands)
public List<RasterBandInfo> getBands()
public int getNumBands()
public RasterBandInfo getBand(int index)
public CoordinateReferenceSystem getCoordinateReferenceSystem()
public RasterCellType getTargetCellType()
public boolean isColorMapped()
public RasterCellType getNativeCellType()
public List<Number> getNoDataValues()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |