|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.raster.io.grid.GridReader org.deegree.coverage.raster.io.grid.GridFileReader
public class GridFileReader
The GridFileReader
class TODO add class documentation here.
Field Summary |
---|
Fields inherited from class org.deegree.coverage.raster.io.grid.GridReader |
---|
infoFile, sampleSize |
Constructor Summary | |
---|---|
GridFileReader()
An empty constructor used in the GridRasterIOProvider , to a location in time where no information is
known yet. |
|
GridFileReader(File gridFile,
RasterIOOptions options)
|
|
GridFileReader(GridMetaInfoFile infoFile,
File gridFile)
|
Method Summary | |
---|---|
boolean |
canLoad(File filename)
Check if the raster reader is able to read the given raster file. |
void |
dispose()
Signals the reader that it should try to dispose all in memory data. |
File |
file()
|
String |
getDataLocationId()
|
Set<String> |
getSupportedFormats()
|
protected void |
instantiate(GridMetaInfoFile infoFile,
File gridFile)
Instantiates this grid reader with the given information. |
protected void |
leaveStreamOpen(boolean yesNo)
Signals the gridfile reader that it should (not) close the stream after a read. |
AbstractRaster |
load(File gridFile,
RasterIOOptions options)
Read the given raster file into an abstract raster. |
protected void |
read(int columnId,
int rowId,
ByteBuffer buffer)
Reads the data from the grid. |
BufferResult |
read(RasterRect rect,
ByteBuffer resultBuffer)
|
protected void |
readValuesFromTile(int tileColumn,
int tileRow,
RasterRect fRect,
FileChannel channel,
ByteBuffer resultBuffer)
|
Methods inherited from class org.deegree.coverage.raster.io.grid.GridReader |
---|
allocateTileBuffer, canReadTiles, getBytesPerTile, getEnvelope, getGeoReference, getHeight, getIntersectingTiles, getNumberOfTiles, getRasterDataInfo, getTile, getTileColumns, getTileData, getTileEnvelope, getTileId, getTileRasterHeight, getTileRasterWidth, getTileRows, getTilesPerBlob, getWidth, instantiate, load, setTilesPerBlob, shouldCreateCacheFile, snapToGrid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridFileReader()
GridRasterIOProvider
, to a location in time where no information is
known yet.
public GridFileReader(GridMetaInfoFile infoFile, File gridFile)
infoFile
- gridFile
- public GridFileReader(File gridFile, RasterIOOptions options) throws IOException
gridFile
- options
-
IOException
Method Detail |
---|
protected void instantiate(GridMetaInfoFile infoFile, File gridFile)
infoFile
- gridFile
- protected void leaveStreamOpen(boolean yesNo)
yesNo
- public boolean canLoad(File filename)
RasterReader
public Set<String> getSupportedFormats()
Set
of (image) formats mime/types the implementation is able to read.public AbstractRaster load(File gridFile, RasterIOOptions options) throws IOException
RasterReader
IOException
- may be thrown when there is a problem with reading the raster.public BufferResult read(RasterRect rect, ByteBuffer resultBuffer) throws IOException
rect
- to read.resultBuffer
- to store the result in
IOException
protected void read(int columnId, int rowId, ByteBuffer buffer) throws IOException
GridReader
read
in class GridReader
IOException
protected void readValuesFromTile(int tileColumn, int tileRow, RasterRect fRect, FileChannel channel, ByteBuffer resultBuffer) throws IOException
tileColumn
- tileRow
- fRect
- channel
- resultBuffer
-
IOException
public File file()
public String getDataLocationId()
public void dispose()
RasterReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |