deegree 2.5 (2011/06/29 09:44 build-8-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(java.lang.String name, GridCoverage raster)
          Creates a new AbstractLayer object.
RasterLayer(java.lang.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(java.lang.String name,
            GridCoverage raster)
      throws java.lang.Exception
Creates a new AbstractLayer object.

Parameters:
name -
raster -
Throws:
java.lang.Exception

RasterLayer

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

setCoordinatesSystem

public void setCoordinatesSystem(CoordinateSystem crs)
                          throws java.lang.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:
java.lang.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 java.lang.Exception
sets the image/raster that represents the layers data

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

deegree 2.5 (2011/06/29 09:44 build-8-official)

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