deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.graphics
Class RasterLayer

java.lang.Object
  extended by org.deegree.graphics.AbstractLayer
      extended by org.deegree.graphics.RasterLayer
All Implemented Interfaces:
Layer

 class RasterLayer
extends AbstractLayer

A RasterLayer represent a layer which data are contained within one single Image. The image/raster is geo-referenced by a Envelope that is linked to it.

------------------------------------------------------------------------

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth

Field Summary
protected  GridCoverage raster
          The raster of the layer
 
Fields inherited from class org.deegree.graphics.AbstractLayer
boundingbox, cs, eventController
 
Constructor Summary
RasterLayer(String name, GridCoverage raster)
          Creates a new AbstractLayer object.
RasterLayer(String name, GridCoverage raster, GetMap request)
           
 
Method Summary
 GridCoverage getRaster()
          returns the image/raster that represents the layers data
(package private)  GetMap getRequest()
           
 void setCoordinatesSystem(CoordinateSystem crs)
          sets the coordinate reference system of the MapView.
 void setRaster(GridCoverage raster)
          sets the image/raster that represents the layers data
 
Methods inherited from class org.deegree.graphics.AbstractLayer
addEventController, getBoundingBox, getCoordinatesSystem, getName, isValid, removeEventController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

raster

protected GridCoverage raster
The raster of the layer

Constructor Detail

RasterLayer

RasterLayer(String name,
            GridCoverage raster)
      throws Exception
Creates a new AbstractLayer object.

Parameters:
name -
raster -
Throws:
Exception

RasterLayer

RasterLayer(String name,
            GridCoverage raster,
            GetMap request)
      throws Exception
Throws:
Exception
Method Detail

setCoordinatesSystem

public void setCoordinatesSystem(CoordinateSystem crs)
                          throws Exception
sets the coordinate reference system of the MapView. If a new crs is set all geometries of GeometryFeatures will be transformed to the new coordinate reference system.

Parameters:
crs - to set
Throws:
Exception - if something went wrong

getRaster

public GridCoverage getRaster()
returns the image/raster that represents the layers data

Returns:
the image/raster that represents the layers data

getRequest

GetMap getRequest()

setRaster

public void setRaster(GridCoverage raster)
               throws Exception
sets the image/raster that represents the layers data

Parameters:
raster - the image/raster that represents the layers data
Throws:
Exception - if the bbox of the layer could not be calculated

deegree 2.3 (2010/04/09 10:10 build-4-official)

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