|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.raster.utils.Rasters
public class Rasters
Rasters
supplies handy methods for rasters.
Constructor Summary | |
---|---|
Rasters()
|
Method Summary | |
---|---|
static int |
calcApproxTiles(int rasterWidth,
int rasterHeight,
int preferredTileSize)
Calculates the number of tiles fitting the given preferred size and the largest of the given raster sides. |
static int |
calcTileSize(float rasterSide,
int numberOfTiles)
Calculates the size of a single tile side. |
static void |
copyValuesFromTile(RasterRect srcRect,
RasterRect destRect,
ByteBuffer srcBuffer,
ByteBuffer destBuffer,
int sampleSize)
Copies the data from the given source databuffer to the target databuffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rasters()
Method Detail |
---|
public static final int calcTileSize(float rasterSide, int numberOfTiles)
rasterSide
- either the width or the height of the entire raster.numberOfTiles
- of the entire raster.
public static final int calcApproxTiles(int rasterWidth, int rasterHeight, int preferredTileSize)
rasterWidth
- of the entire rasterrasterHeight
- of the entire rasterpreferredTileSize
- in pixels of the largest side.
public static void copyValuesFromTile(RasterRect srcRect, RasterRect destRect, ByteBuffer srcBuffer, ByteBuffer destBuffer, int sampleSize) throws IOException
srcRect
- the rectangle specifying the layout of the data in the source buffer.destRect
- the rectangle specifying the layout of the data in the result buffer.srcBuffer
- containing the data fitting the srcRectdestBuffer
- which will hold the resultsampleSize
- size in bytes of a sample (depends on the band size and the datatype)
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |