org.deegree.coverage.raster.container
Class MemoryTileContainer

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

public class MemoryTileContainer
extends Object
implements TileContainer

This TileContainer keeps all tiles (AbstractRaster) in memory. Use this container for tiles with a few thousand or less tiles. The AbstractRaster should be loaded with a LAZY or CACHED LoadingPolicy (see RasterFactory).

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

Constructor Summary
MemoryTileContainer(AbstractRaster... abstractRasters)
          Creates a MemoryTileContainer with given tiles.
MemoryTileContainer(List<AbstractRaster> abstractRasters)
          Creates a MemoryTileContainer with given tiles.
MemoryTileContainer(RasterGeoReference geoRasterRef, Envelope envelope)
          Creates a MemoryTileContainer with no tiles.
MemoryTileContainer(RasterGeoReference geoRasterRef, Envelope envelope, RasterDataInfo rasterDataInfo)
           
 
Method Summary
 void addTile(AbstractRaster raster)
          Adds a new tile to the container.
 Envelope getEnvelope()
          Returns the envelope of all tiles in this container.
 RasterDataInfo getRasterDataInfo()
          Return the first tile of this container.
 RasterGeoReference getRasterReference()
          Returns the RasterReference of all tiles in this container.
 ResolutionInfo getResolutionInfo()
           
 List<AbstractRaster> getTiles(Envelope env)
          Returns all tiles that intersects the envelope.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryTileContainer

public MemoryTileContainer(RasterGeoReference geoRasterRef,
                           Envelope envelope,
                           RasterDataInfo rasterDataInfo)
Parameters:
geoRasterRef - of this tile container
envelope - of this tile container.
rasterDataInfo -

MemoryTileContainer

public MemoryTileContainer(RasterGeoReference geoRasterRef,
                           Envelope envelope)
Creates a MemoryTileContainer with no tiles.

Parameters:
geoRasterRef - of this tile container
envelope - of this tile container.

MemoryTileContainer

public MemoryTileContainer(AbstractRaster... abstractRasters)
Creates a MemoryTileContainer with given tiles.

Parameters:
abstractRasters - one or more tiles

MemoryTileContainer

public MemoryTileContainer(List<AbstractRaster> abstractRasters)
Creates a MemoryTileContainer with given tiles.

Parameters:
abstractRasters - one or more tiles
Method Detail

addTile

public void addTile(AbstractRaster raster)
Adds a new tile to the container.

Parameters:
raster - new tile

getTiles

public List<AbstractRaster> getTiles(Envelope env)
Description copied from interface: TileContainer
Returns all tiles that intersects the envelope.

Specified by:
getTiles in interface TileContainer
Parameters:
env - return List with tiles
Returns:
A List with all intersecting tiles.

getEnvelope

public Envelope getEnvelope()
Description copied from interface: TileContainer
Returns the envelope of all tiles in this container.

Specified by:
getEnvelope in interface TileContainer
Returns:
The envelope of all tiles.

getRasterReference

public RasterGeoReference getRasterReference()
Description copied from interface: TileContainer
Returns the RasterReference of all tiles in this container.

Specified by:
getRasterReference in interface TileContainer
Returns:
The raster envelope of the tiles.

toString

public String toString()
Overrides:
toString in class Object

getRasterDataInfo

public RasterDataInfo getRasterDataInfo()
Description copied from interface: TileContainer
Return the first tile of this container. First is implementation status.

Specified by:
getRasterDataInfo in interface TileContainer
Returns:
the first tile in the container

getResolutionInfo

public ResolutionInfo getResolutionInfo()
Specified by:
getResolutionInfo in interface TileContainer
Returns:
the information about the resolution


Copyright © 2011. All Rights Reserved.