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: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

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, getResolutionInfo, 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


Copyright © 2011. All Rights Reserved.