org.deegree.coverage.raster.container
Class GriddedBlobTileContainer

java.lang.Object
  extended by org.deegree.coverage.raster.container.GriddedTileContainer
      extended by org.deegree.coverage.raster.container.GriddedBlobTileContainer
All Implemented Interfaces:
TileContainer

public class GriddedBlobTileContainer
extends GriddedTileContainer

Concrete implementation of GriddedTileContainer that extracts the tiles from a blob with a custom format. See d3_tools/RasterTreeGridifier on how to create the format.

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Field Summary
static String BLOB_FILE_EXT
          extension of a blob file.
static String BLOB_FILE_NAME
          name of a blob file.
 
Fields inherited from class org.deegree.coverage.raster.container.GriddedTileContainer
tileSamplesX, tileSamplesY
 
Constructor Summary
GriddedBlobTileContainer(File blobFile, GridMetaInfoFile metaInfoFile)
          A gridded tile container which reads data from a deegree internal format.
GriddedBlobTileContainer(GridMetaInfoFile metaInfoFile, File blobDir)
          A gridded tile container which reads data from a deegree internal format.
 
Method Summary
static GriddedBlobTileContainer create(File dir, RasterIOOptions options)
          Reads the index file, 'gridded_raster.info' from the given directory reads the world file information as well as the number of tiles.
 AbstractRaster getTile(int rowId, int columnId)
          Returns the raster tile at the given grid position.
 
Methods inherited from class org.deegree.coverage.raster.container.GriddedTileContainer
getColumns, getEnvelope, getRasterDataInfo, getRasterReference, getResolutionInfo, getRows, getTileEnvelope, getTileId, getTiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOB_FILE_NAME

public static final String BLOB_FILE_NAME
name of a blob file.

See Also:
Constant Field Values

BLOB_FILE_EXT

public static final String BLOB_FILE_EXT
extension of a blob file.

See Also:
Constant Field Values
Constructor Detail

GriddedBlobTileContainer

public GriddedBlobTileContainer(GridMetaInfoFile metaInfoFile,
                                File blobDir)
                         throws IOException
A gridded tile container which reads data from a deegree internal format. See d3_tools/RasterTreeGridifier on how to create the format.

Parameters:
metaInfoFile - encapsulating the values read from the grid meta info file.
blobDir -
Throws:
IOException

GriddedBlobTileContainer

public GriddedBlobTileContainer(File blobFile,
                                GridMetaInfoFile metaInfoFile)
                         throws IOException
A gridded tile container which reads data from a deegree internal format. See d3_tools/RasterTreeGridifier on how to create the format. This methods takes a single bob file instead of scanning a given directory

Parameters:
blobFile - to read the tiles from.
metaInfoFile -
Throws:
IOException
Method Detail

create

public static GriddedBlobTileContainer create(File dir,
                                              RasterIOOptions options)
                                       throws IOException
Reads the index file, 'gridded_raster.info' from the given directory reads the world file information as well as the number of tiles.

Parameters:
dir - to read the gridded_raster.info
options - which will hold information on the file.
Returns:
a GriddedBlobTileContainer instantiated with the values read from the gridded_raster.info.
Throws:
IOException

getTile

public AbstractRaster getTile(int rowId,
                              int columnId)
Description copied from class: GriddedTileContainer
Returns the raster tile at the given grid position.

Specified by:
getTile in class GriddedTileContainer
Parameters:
rowId - row id, must in the range [0 ... #rows - 1]
columnId - column id, must be in the range [0 ... #columns - 1]
Returns:
the raster tile at the given grid position


Copyright © 2011. All Rights Reserved.