public final class RasterInfo extends Object
Basically, it wraps the SeRasterAttr object and implements some convenience methods for doing calculations with it.
Modifier and Type | Method and Description |
---|---|
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() |
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)
SeRasterAttr.skipLevelOne()
was true
.
NOTE: logic stolen and adapted from AbstractGridCoverage2DReader#getOverviewImage()
policy
- public void addPyramidLevel(int level, int numTilesWide, int numTilesHigh, GridEnvelope gridEnvelope, GeneralEnvelope spatialExtent)
public 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 boolean isSkipLevelOne()
Copyright © 1996–2019 Geotools. All rights reserved.