|
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 |
java.lang.Object org.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 |
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 |
getNumSources()
Number of grid coverages which the grid coverage was derived from. |
abstract 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. |
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 Coverage
evaluate(...)
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 Coverage
public java.lang.String[] getDimensionNames()
getDimensionNames
in interface Coverage
public SampleDimension getSampleDimension(int index) throws java.lang.IndexOutOfBoundsException
getSampleDimension
in interface Coverage
index
- Index for sample dimension to retrieve. Indices are numbered 0 to (n-1).
java.lang.IndexOutOfBoundsException
- if index
is out of bounds.public int getNumSources()
getNumSources
in interface Coverage
public 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".
getSource
in interface Coverage
sourceDataIndex
- Source coverage index. Indexes start at 0.
java.lang.IndexOutOfBoundsException
- if sourceDataIndex
is out of bounds.getNumSources()
,
"org.opengis.coverage.grid.GridCoverage#getSource"public java.lang.String[] getMetadataNames()
getMetadataNames
in interface Coverage
getMetadataValue(java.lang.String)
,
PropertySource.getPropertyNames()
public java.lang.String getMetadataValue(java.lang.String name) throws MetadataNameNotFoundException
getMetadataValue
in interface Coverage
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)
public abstract 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()
getRenderableImage
in interface Coverage
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.public CoverageOffering getCoverageOffering()
CoverageOffering
describing a coverage
CoverageOffering
|
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