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

org.deegree.coverage.raster
Class TiledRaster

java.lang.Object
  extended by org.deegree.coverage.AbstractCoverage
      extended by org.deegree.coverage.raster.AbstractRaster
          extended by org.deegree.coverage.raster.TiledRaster

public class TiledRaster
extends AbstractRaster

This class represents a tiled AbstractRaster. A TiledRaster contains multiple non-overlapping (TODO verify this) AbstractRasters

Version:
$Revision: 22269 $, $Date: 2010-01-27 18:04:01 +0100 (Mi, 27 Jan 2010) $
Author:
Oliver Tonnhofer, last edited by: $Author: rbezema $

Constructor Summary
TiledRaster(TileContainer tileContainer)
          Creates a new TiledRaster with tiles from the given TileContainer
 
Method Summary
 TiledRaster copy()
          Creates a copy of the raster with all the data.
 SimpleRaster getAsSimpleRaster()
          Returns the AbstractRaster as a SimpleRaster.
 CRS getCoordinateSystem()
           
 Envelope getEnvelope()
           
 RasterDataInfo getRasterDataInfo()
          Returns available information on the raster data.
 RasterGeoReference getRasterReference()
           
 TiledRaster getSubRaster(Envelope env)
          Returns a subset of the raster, note this is a view on the given raster.
 TiledRaster getSubRaster(Envelope env, BandType[] bands)
          Returns a subset of the raster, note this is a view on the given raster.
 TiledRaster getSubRaster(Envelope env, BandType[] bands, RasterGeoReference.OriginLocation targetLocation)
          Get a subraster which has it's origin location at the given location.
 TileContainer getTileContainer()
          Returns the wrapper for all tiles.
 void setSubRaster(double x, double y, AbstractRaster source)
          Sets the raster with data from source.
 void setSubRaster(double x, double y, int dstBand, AbstractRaster source)
          Sets a single band with data from source.
 void setSubRaster(Envelope envelope, AbstractRaster source)
          Sets the raster with data from source.
 void setSubRaster(Envelope env, int dstBand, AbstractRaster source)
          Sets a single band with data from source.
 String toString()
           
 
Methods inherited from class org.deegree.coverage.raster.AbstractRaster
checkBounds, envelopeString, extendRasterReference, getColumns, getRows, getSubRaster, isSimpleRaster
 
Methods inherited from class org.deegree.coverage.AbstractCoverage
extendEnvelope, getGeometryFactory, getLabel, getName, getSupplementProperties, setCoordinateSystem, setEnvelope, setLabel, setName, setSupplementProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TiledRaster

public TiledRaster(TileContainer tileContainer)
Creates a new TiledRaster with tiles from the given TileContainer

Parameters:
tileContainer - wraps all tiles
Method Detail

getTileContainer

public TileContainer getTileContainer()
Returns the wrapper for all tiles.

Returns:
The container for all tiles.

getEnvelope

public Envelope getEnvelope()
Overrides:
getEnvelope in class AbstractCoverage
Returns:
The envelope of the coverage.

getRasterReference

public RasterGeoReference getRasterReference()
Overrides:
getRasterReference in class AbstractRaster
Returns:
The raster reference of this raster.

getCoordinateSystem

public CRS getCoordinateSystem()
Overrides:
getCoordinateSystem in class AbstractCoverage
Returns:
the coordinate system of the raster

copy

public TiledRaster copy()
Description copied from class: AbstractRaster
Creates a copy of the raster with all the data.

Specified by:
copy in class AbstractRaster
Returns:
A copy of the raster.

getSubRaster

public TiledRaster getSubRaster(Envelope env)
Description copied from class: AbstractRaster
Returns a subset of the raster, note this is a view on the given raster.

Specified by:
getSubRaster in class AbstractRaster
Parameters:
env - envelope of the subset
Returns:
subset of the raster

getSubRaster

public TiledRaster getSubRaster(Envelope env,
                                BandType[] bands)
Description copied from class: AbstractRaster
Returns a subset of the raster, note this is a view on the given raster.

Specified by:
getSubRaster in class AbstractRaster
Parameters:
env - envelope of the subset
bands - to use for the given subset.
Returns:
subset of the raster

getSubRaster

public TiledRaster getSubRaster(Envelope env,
                                BandType[] bands,
                                RasterGeoReference.OriginLocation targetLocation)
Get a subraster which has it's origin location at the given location.

Parameters:
env - of the subraster
bands - defining the bands of the sub raster
targetLocation - the new origin's location definition.
Returns:
a subraster of the size of the given envelope, having the given bands and the given target location.

setSubRaster

public void setSubRaster(Envelope envelope,
                         AbstractRaster source)
Description copied from class: AbstractRaster
Sets the raster with data from source. Source must overlap the raster (within the envelope).

Specified by:
setSubRaster in class AbstractRaster
Parameters:
envelope - Envelope with the destination area
source - data to copy

setSubRaster

public void setSubRaster(double x,
                         double y,
                         AbstractRaster source)
Description copied from class: AbstractRaster
Sets the raster with data from source.

Specified by:
setSubRaster in class AbstractRaster
Parameters:
x - left boundary
y - upper boundary
source - data to copy

setSubRaster

public void setSubRaster(double x,
                         double y,
                         int dstBand,
                         AbstractRaster source)
Description copied from class: AbstractRaster
Sets a single band with data from source. Copies the first band of source into dstBand.

Specified by:
setSubRaster in class AbstractRaster
Parameters:
x - left boundary
y - upper boundary
dstBand - selected destination band
source - data to copy

setSubRaster

public void setSubRaster(Envelope env,
                         int dstBand,
                         AbstractRaster source)
Description copied from class: AbstractRaster
Sets a single band with data from source.

Specified by:
setSubRaster in class AbstractRaster
Parameters:
env - destination area
dstBand - selected destination band
source - data to copy

getAsSimpleRaster

public SimpleRaster getAsSimpleRaster()
Description copied from class: AbstractRaster
Returns the AbstractRaster as a SimpleRaster. The data gets cropped (TiledRaster) or merged (MultiRange) if necessary.

Specified by:
getAsSimpleRaster in class AbstractRaster
Returns:
The raster data as SimpleRaster

toString

public String toString()
Overrides:
toString in class AbstractRaster

getRasterDataInfo

public RasterDataInfo getRasterDataInfo()
Description copied from class: AbstractRaster
Returns available information on the raster data. This method should be called with care, it may under circumstances, cause massive loading of raster data.

Specified by:
getRasterDataInfo in class AbstractRaster
Returns:
available information on the raster data.

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

]]>