org.deegree.coverage.raster.container
Class IndexedMemoryTileContainer

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

public class IndexedMemoryTileContainer
extends Object
implements TileContainer

The IndexedMemoryTileContainer class uses a quad tree as a spatial index.

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

Constructor Summary
IndexedMemoryTileContainer(Envelope domain, RasterGeoReference rasterReference, int objectsInLeaf)
          Uses a QTree as a spatial index.
 
Method Summary
 void addRasterTiles(List<AbstractRaster> rasters)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedMemoryTileContainer

public IndexedMemoryTileContainer(Envelope domain,
                                  RasterGeoReference rasterReference,
                                  int objectsInLeaf)
Uses a QTree as a spatial index.

Parameters:
domain -
rasterReference -
objectsInLeaf -
Method Detail

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.

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.

addTile

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

Parameters:
raster - new tile

addRasterTiles

public void addRasterTiles(List<AbstractRaster> rasters)
Parameters:
rasters -

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.