org.geotools.arcsde.raster.io
Interface TileReader


public interface TileReader

Offers a random access interface to the tile data for a raster request.

Implementations are expected to perform better when the tiles are requested in sequential x/y order (e.g., 0,0; 1,0; 2,0; 0,1; 1,1; 2,1 for 3x2 tile set), though they're required to be able to return any randomly requested tile, probably by being forced to issue a separate request to the server or do some cacheing.

Since:
2.5.4
Author:
Gabriel Roldan (OpenGeo)

Method Summary
 void dispose()
          Disposes any resource being held by this TileReader, making the TileReader unusable and the behaviour of #hasNext() and #next unpredictable
 int getBitsPerSample()
           
 int getBytesPerTile()
           
 int getMaxTileX()
           
 int getMaxTileY()
           
 int getMinTileX()
           
 int getMinTileY()
           
 int getNumberOfBands()
           
 int getPixelsPerTile()
           
 int getPyramidLevel()
           
 long getRasterId()
           
 String getRasterTableName()
           
 String getServerName()
           
 void getTile(int tileX, int tileY, byte[][] data)
           
 void getTile(int tileX, int tileY, double[][] data)
           
 void getTile(int tileX, int tileY, float[][] data)
           
 void getTile(int tileX, int tileY, int[][] data)
           
 void getTile(int tileX, int tileY, short[][] data)
           
 int getTileHeight()
           
 int getTilesHigh()
           
 int getTilesWide()
           
 int getTileWidth()
           
 

Method Detail

getBitsPerSample

int getBitsPerSample()
Returns:
number of bits per sample

getPixelsPerTile

int getPixelsPerTile()
Returns:
number of samples per tile

getNumberOfBands

int getNumberOfBands()
Returns:
numbre of bands being fetched

getTileWidth

int getTileWidth()
Returns:
number of pixels per tile over the X axis

getTileHeight

int getTileHeight()
Returns:
number of pixels per tile over the Y axis

getTilesWide

int getTilesWide()
Returns:
number of tiles being fetched over the X axis

getTilesHigh

int getTilesHigh()
Returns:
number of tiles being fetched over the Y axis

getBytesPerTile

int getBytesPerTile()
Returns:
number of bytes in the raw pixel content of a tile, not taking into account any trailing bitmask data.

dispose

void dispose()
Disposes any resource being held by this TileReader, making the TileReader unusable and the behaviour of #hasNext() and #next unpredictable


getServerName

String getServerName()

getRasterTableName

String getRasterTableName()

getRasterId

long getRasterId()

getPyramidLevel

int getPyramidLevel()

getMinTileX

int getMinTileX()

getMinTileY

int getMinTileY()

getTile

void getTile(int tileX,
             int tileY,
             byte[][] data)
             throws IOException
Throws:
IOException

getTile

void getTile(int tileX,
             int tileY,
             short[][] data)
             throws IOException
Throws:
IOException

getTile

void getTile(int tileX,
             int tileY,
             int[][] data)
             throws IOException
Throws:
IOException

getTile

void getTile(int tileX,
             int tileY,
             float[][] data)
             throws IOException
Throws:
IOException

getTile

void getTile(int tileX,
             int tileY,
             double[][] data)
             throws IOException
Throws:
IOException

getMaxTileX

int getMaxTileX()

getMaxTileY

int getMaxTileY()


Copyright © 1996-2014 Geotools. All Rights Reserved.