org.deegree.coverage
Class AbstractCoverage

java.lang.Object
  extended by org.deegree.coverage.AbstractCoverage
All Implemented Interfaces:
Resource, Coverage
Direct Known Subclasses:
AbstractRaster, MultiResolutionRaster

public abstract class AbstractCoverage
extends Object
implements Coverage

This class represents an abstract coverage.

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
AbstractCoverage()
          Instantiate an AbstractCoverage with no envelope and no rangeset.
AbstractCoverage(Envelope envelope)
          Instantiate an AbstractCoverage with given envelope.
AbstractCoverage(Envelope envelope, SupplementProperties supplementProperties)
          Instantiate an AbstractCoverage with given envelope, rangeset and SupplementProperties.
 
Method Summary
 void destroy()
          Usually called by the ResourceManager upon workspace shutdown.
protected  void extendEnvelope(Envelope envelope)
          Extend the envelope of the coverage.
 ICRS getCoordinateSystem()
          Returns the native coordinate system this coverage is defined in.
 Envelope getEnvelope()
          Returns the (spatial) domain of this coverage.
protected  GeometryFactory getGeometryFactory()
           
 String getLabel()
           
 String getName()
           
 SupplementProperties getSupplementProperties()
           
 void init(DeegreeWorkspace workspace)
          Usually called by the ResourceManager upon workspace startup.
 void setCoordinateSystem(ICRS crs)
           
protected  void setEnvelope(Envelope envelope)
           
 void setLabel(String label)
           
 void setName(String name)
           
 void setSupplementProperties(SupplementProperties supplementProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.coverage.Coverage
getAsRaster, getResolutionInfo
 

Constructor Detail

AbstractCoverage

public AbstractCoverage()
Instantiate an AbstractCoverage with no envelope and no rangeset.


AbstractCoverage

public AbstractCoverage(Envelope envelope)
Instantiate an AbstractCoverage with given envelope.

Parameters:
envelope - The envelope of the coverage.

AbstractCoverage

public AbstractCoverage(Envelope envelope,
                        SupplementProperties supplementProperties)
Instantiate an AbstractCoverage with given envelope, rangeset and SupplementProperties.

Parameters:
envelope - The envelope of the coverage.
supplementProperties - allows the possibility to add general objects to this Coverage.
Method Detail

getGeometryFactory

protected GeometryFactory getGeometryFactory()
Returns:
GeometryFactory for creation of envelopes, etc.

getEnvelope

public Envelope getEnvelope()
Description copied from interface: Coverage
Returns the (spatial) domain of this coverage.

Specified by:
getEnvelope in interface Coverage
Returns:
The envelope of the coverage.

setEnvelope

protected void setEnvelope(Envelope envelope)
Parameters:
envelope - New envelope for the coverage.

extendEnvelope

protected void extendEnvelope(Envelope envelope)
Extend the envelope of the coverage. The new envelope of the coverage will contain the old and the given envelope.

Parameters:
envelope - Envelope to add.

getCoordinateSystem

public ICRS getCoordinateSystem()
Description copied from interface: Coverage
Returns the native coordinate system this coverage is defined in.

Specified by:
getCoordinateSystem in interface Coverage
Returns:
the coordinate system of the raster

setCoordinateSystem

public void setCoordinateSystem(ICRS crs)
Parameters:
crs -

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getLabel

public String getLabel()
Returns:
the label

setLabel

public void setLabel(String label)
Parameters:
label - the label to set

getSupplementProperties

public final SupplementProperties getSupplementProperties()
Returns:
the supplementProperties

setSupplementProperties

public final void setSupplementProperties(SupplementProperties supplementProperties)
Parameters:
supplementProperties - the supplementProperties to set

init

public void init(DeegreeWorkspace workspace)
          throws ResourceInitException
Description copied from interface: Resource
Usually called by the ResourceManager upon workspace startup.

Specified by:
init in interface Resource
Parameters:
workspace - the workspace the resource belongs to, may be null
Throws:
ResourceInitException

destroy

public void destroy()
Description copied from interface: Resource
Usually called by the ResourceManager upon workspace shutdown.

Specified by:
destroy in interface Resource


Copyright © 2011. All Rights Reserved.