|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.coverage.AbstractCoverage
public abstract class AbstractCoverage
Provides access to an OpenGIS coverage. The essential property of coverage is to be able to generate a value for any
point within its domain. How coverage is represented internally is not a concern.
For example consider the following different internal representations of coverage:
SampleDimension for each sample dimension in the coverage.
| Field Summary | |
|---|---|
protected CoverageOffering |
coverageOffering
|
protected int |
numSources
|
protected Coverage[] |
sources
|
| Constructor Summary | |
|---|---|
AbstractCoverage(CoverageOffering coverageOffering,
Envelope env)
|
|
AbstractCoverage(CoverageOffering coverageOffering,
Envelope env,
Coverage[] sources)
|
|
AbstractCoverage(CoverageOffering coverageOffering,
Envelope env,
Coverage[] sources,
CoordinateSystem crs)
|
|
| Method Summary | |
|---|---|
CoordinateSystem |
getCoordinateReferenceSystem()
Specifies the coordinate reference system used when accessing a coverage or grid coverage with the evaluate(...) |
CoverageOffering |
getCoverageOffering()
returns the CoverageOffering describing a coverage |
String[] |
getDimensionNames()
The names of each dimension in the coverage. |
Envelope |
getEnvelope()
The bounding box for the coverage domain in coordinate reference system coordinates. |
String[] |
getMetadataNames()
List of metadata keywords for a coverage. |
String |
getMetadataValue(String name)
Retrieve the metadata value for a given metadata name. |
int |
getNumSources()
Number of grid coverages which the grid coverage was derived from. |
abstract RenderableImage |
getRenderableImage(int xAxis,
int yAxis)
Returns 2D view of this coverage as a renderable image. |
SampleDimension |
getSampleDimension(int index)
Retrieve sample dimension information for the coverage. |
Coverage |
getSource(int sourceDataIndex)
Returns the source data for a coverage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.deegree.model.coverage.Coverage |
|---|
getNumSampleDimensions |
| Field Detail |
|---|
protected CoverageOffering coverageOffering
protected int numSources
protected Coverage[] sources
| Constructor Detail |
|---|
public AbstractCoverage(CoverageOffering coverageOffering,
Envelope env)
coverageOffering - env -
public AbstractCoverage(CoverageOffering coverageOffering,
Envelope env,
Coverage[] sources)
coverageOffering - env - sources -
public AbstractCoverage(CoverageOffering coverageOffering,
Envelope env,
Coverage[] sources,
CoordinateSystem crs)
coverageOffering - env - sources - crs - | Method Detail |
|---|
public CoordinateSystem getCoordinateReferenceSystem()
evaluate(...) methods. It is also the coordinate reference system of the coordinates used with the
math transform gridToCoordinateSystem}).
This coordinate reference system is usually different than coordinate system of the grid. Grid coverage can be
accessed (re-projected) with new coordinate reference system with the
"org.opengis.coverage.processing.GridCoverageProcessor" component. In this case, a new instance of a grid
coverage is created. null. attribute should also be null if the coordinate reference system is
null.
getCoordinateReferenceSystem in interface Coverageevaluate(...) methods, or null.public Envelope getEnvelope()
If a grid coverage does not have any associated coordinate reference system, the minimum and maximum coordinate points for the envelope will be empty sequences.(Minimum row - 0.5, Minimum column - 0.5) for the minimum coordinates (Maximum row - 0.5, Maximum column - 0.5) for the maximum coordinates
getEnvelope in interface Coveragepublic String[] getDimensionNames()
getDimensionNames in interface Coverage
public SampleDimension getSampleDimension(int index)
throws IndexOutOfBoundsException
getSampleDimension in interface Coverageindex - Index for sample dimension to retrieve. Indices are numbered 0 to (n-1).
IndexOutOfBoundsException - if index is out of bounds.public int getNumSources()
getNumSources in interface Coverage
public Coverage getSource(int sourceDataIndex)
throws IndexOutOfBoundsException
Coverages will be affected when others are updated, as well as to trace back to the "raw data".
getSource in interface CoveragesourceDataIndex - Source coverage index. Indexes start at 0.
IndexOutOfBoundsException - if sourceDataIndex is out of bounds.getNumSources(),
"org.opengis.coverage.grid.GridCoverage#getSource"public String[] getMetadataNames()
getMetadataNames in interface CoveragegetMetadataValue(java.lang.String),
PropertySource.getPropertyNames()
public String getMetadataValue(String name)
throws MetadataNameNotFoundException
getMetadataValue in interface Coveragename - Metadata keyword for which to retrieve data.
MetadataNameNotFoundException - if there is no value for the specified metadata name.getMetadataNames(),
PropertySource.getProperty(java.lang.String)
public abstract RenderableImage getRenderableImage(int xAxis,
int yAxis)
throws UnsupportedOperationException,
IndexOutOfBoundsException
RenderedImage, the underlying
image can be obtained with:
getRenderableImage(0,1).createDefaultRendering()
getRenderableImage in interface CoveragexAxis - Dimension to use for the x axis.yAxis - Dimension to use for the y axis.
UnsupportedOperationException - if this optional operation is not supported.
IndexOutOfBoundsException - if xAxis or yAxis is out of bounds.public CoverageOffering getCoverageOffering()
CoverageOffering describing a coverage
CoverageOffering
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org