|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Coverage
Provides access to a 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. PropertySource
interface as well. In this case, implementation of PropertySource
methods must be consistent
with getMetadataNames()
and getMetadataValue(java.lang.String)
methods.
RenderableImage
,
ImageFunction
Method Summary | |
---|---|
CoordinateSystem |
getCoordinateReferenceSystem()
Specifies the coordinate reference system used when accessing a coverage or grid coverage with the evaluate(...) |
java.lang.String[] |
getDimensionNames()
The names of each dimension in the coverage. |
Envelope |
getEnvelope()
The bounding box for the coverage domain in coordinate reference system coordinates. |
java.lang.String[] |
getMetadataNames()
List of metadata keywords for a coverage. |
java.lang.String |
getMetadataValue(java.lang.String name)
Retrieve the metadata value for a given metadata name. |
int |
getNumSampleDimensions()
The number of sample dimensions in the coverage. |
int |
getNumSources()
Number of grid coverages which the grid coverage was derived from. |
java.awt.image.renderable.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. |
Method Detail |
---|
CoordinateSystem getCoordinateReferenceSystem()
evaluate(...)
methods. It is also the coordinate reference system of the coordinates used with the
math transform
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
.
evaluate(...)
methods, or null
.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
java.lang.String[] getDimensionNames()
int getNumSampleDimensions()
SampleDimension getSampleDimension(int index) throws java.lang.IndexOutOfBoundsException
index
- Index for sample dimension to retrieve. Indices are numbered 0 to (
n-1).
java.lang.IndexOutOfBoundsException
- if index
is out of bounds.int getNumSources()
Coverage getSource(int sourceDataIndex) throws java.lang.IndexOutOfBoundsException
Coverage
s will be affected when others are updated, as well as to trace back to the "raw data".
sourceDataIndex
- Source coverage index. Indexes start at 0.
java.lang.IndexOutOfBoundsException
- if sourceDataIndex
is out of bounds.getNumSources()
,
"org.opengis.coverage.grid.GridCoverage#getSource"java.lang.String[] getMetadataNames()
getMetadataValue(java.lang.String)
,
PropertySource.getPropertyNames()
java.lang.String getMetadataValue(java.lang.String name) throws MetadataNameNotFoundException
name
- Metadata keyword for which to retrieve data.
MetadataNameNotFoundException
- if there is no value for the specified metadata name.getMetadataNames()
,
PropertySource.getProperty(java.lang.String)
java.awt.image.renderable.RenderableImage getRenderableImage(int xAxis, int yAxis) throws java.lang.UnsupportedOperationException, java.lang.IndexOutOfBoundsException
RenderedImage
, the underlying
image can be obtained with:
getRenderableImage(0,1).createDefaultRendering()
xAxis
- Dimension to use for the x axis.yAxis
- Dimension to use for the y axis.
java.lang.UnsupportedOperationException
- if this optional operation is not supported.
java.lang.IndexOutOfBoundsException
- if xAxis
or yAxis
is out of bounds.
|
deegree 2.5 (2011/06/29 09:44 build-8-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