deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.coverage.raster.container
Class GriddedMemoryTileContainer

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

public class GriddedMemoryTileContainer
extends GriddedTileContainer

Concrete implementation of GriddedTileContainer that keeps the tiles in memory.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Field Summary
 
Fields inherited from class org.deegree.coverage.raster.container.GriddedTileContainer
tileSamplesX, tileSamplesY
 
Constructor Summary
GriddedMemoryTileContainer(RasterGeoReference.OriginLocation location, Envelope envelope, int rows, int columns, int tileSamplesX, int tileSamplesY, AbstractRaster[] cells)
          The memory based gridded tile container.
 
Method Summary
static GriddedMemoryTileContainer create(GriddedTileContainer orig)
          Creates an in-memory gridded tile container from the given tile container.
 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, getRows, getTileEnvelope, getTileId, getTiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GriddedMemoryTileContainer

public GriddedMemoryTileContainer(RasterGeoReference.OriginLocation location,
                                  Envelope envelope,
                                  int rows,
                                  int columns,
                                  int tileSamplesX,
                                  int tileSamplesY,
                                  AbstractRaster[] cells)
The memory based gridded tile container.

Parameters:
location -
envelope -
rows -
columns -
tileSamplesX -
tileSamplesY -
cells -
Method Detail

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

create

public static GriddedMemoryTileContainer create(GriddedTileContainer orig)
                                         throws IOException
Creates an in-memory gridded tile container from the given tile container.

Parameters:
orig -
Returns:
an in-memory gridded tile container.
Throws:
IOException

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>