|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.cv.CV_Coverage_Impl
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:
CV_SampleDimension
for each sample
dimension in the coverage.
Field Summary | |
private CS_CoordinateSystem |
crs
|
protected CVDescriptor |
descriptor
|
protected java.lang.String[] |
dimensionNames
|
protected PT_Envelope |
envelope
|
protected java.util.HashMap |
metadata
|
protected int |
numSources
|
protected CV_SampleDimension[] |
sampleDimensions
|
Constructor Summary | |
CV_Coverage_Impl(CS_CoordinateSystem crs)
initialzies a simple, enpty CV_Coverage just with a CRS |
|
CV_Coverage_Impl(CVDescriptor descriptor)
initialzies a simple CV_Coverage |
Method Summary | |
java.lang.Object |
evaluate(PT_CoordinatePoint point)
Return the value vector for a given point in the coverage. |
boolean[] |
evaluateAsBoolean(PT_CoordinatePoint point)
Return a sequence of Boolean values for a given point in the coverage. |
byte[] |
evaluateAsByte(PT_CoordinatePoint point)
Return a sequence of unsigned byte values for a given point in the coverage. |
double[] |
evaluateAsDouble(PT_CoordinatePoint point)
Return a sequence of double values for a given point in the coverage. |
int[] |
evaluateAsInteger(PT_CoordinatePoint point)
Return a sequence of integer values for a given point in the coverage. |
CS_CoordinateSystem |
getCoordinateSystem()
This specifies the coordinate system used when accessing a coverage or grid coverage with the evaluate methods. |
java.lang.String[] |
getDimensionNames()
The names of each dimension in the coverage. |
PT_Envelope |
getEnvelope()
The bounding box for the coverage domain in coordinate 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. |
CV_SampleDimension |
getSampleDimension(int index)
Retrieve sample dimension information for the coverage. |
GC_GridCoverage |
getSource(int sourceDataIndex)
Returns the source data for a grid coverage. |
private static java.util.ArrayList |
getTiles(GM_Envelope boundingBox,
double scale,
Level level,
java.util.ArrayList list)
recursive method for selecting all Tiles that matches the submitted conditions. |
private static java.util.ArrayList |
getTiles(GM_Envelope boundingBox,
Tile tile,
java.util.ArrayList list)
recursive method for selecting all Tiles that matches the submitted conditions. |
protected static Tile[] |
getTiles(Level level,
GM_Envelope boundingBox,
double scale)
return all Tiles that matches the bounding box and the scale. |
private static java.util.ArrayList |
getTilesByDir(GM_Envelope boundingBox,
double scale,
Level level,
java.util.ArrayList list)
|
void |
setSampleDimension(CV_SampleDimension[] sampleDimensions)
sets the sample dimensions for the coverage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private CS_CoordinateSystem crs
protected CVDescriptor descriptor
protected java.lang.String[] dimensionNames
protected PT_Envelope envelope
protected java.util.HashMap metadata
protected int numSources
protected CV_SampleDimension[] sampleDimensions
Constructor Detail |
public CV_Coverage_Impl(CVDescriptor descriptor)
descriptor
- containing a description of the coveragepublic CV_Coverage_Impl(CS_CoordinateSystem crs)
crs
- coordinate reference system of the coverageMethod Detail |
public java.lang.Object evaluate(PT_CoordinatePoint point) throws java.rmi.RemoteException
getCoordinateSystem()
).
evaluate
in interface CV_Coverage
point
- Point at which to find the grid values.
java.rmi.RemoteException
- if a remote method call failed.public boolean[] evaluateAsBoolean(PT_CoordinatePoint point) throws java.rmi.RemoteException
evaluateAsBoolean
in interface CV_Coverage
point
- Point at which to find the coverage values.
java.rmi.RemoteException
- if a remote method call failed.public byte[] evaluateAsByte(PT_CoordinatePoint point) throws java.rmi.RemoteException
evaluateAsByte
in interface CV_Coverage
point
- Point at which to find the coverage values.
java.rmi.RemoteException
- if a remote method call failed.public double[] evaluateAsDouble(PT_CoordinatePoint point) throws java.rmi.RemoteException
evaluateAsDouble
in interface CV_Coverage
point
- Point at which to find the grid values.
java.rmi.RemoteException
- if a remote method call failed.public int[] evaluateAsInteger(PT_CoordinatePoint point) throws java.rmi.RemoteException
evaluateAsInteger
in interface CV_Coverage
point
- Point at which to find the grid values.
java.rmi.RemoteException
- if a remote method call failed.public CS_CoordinateSystem getCoordinateSystem() throws java.rmi.RemoteException
evaluate
methods. It is also the coordinate
system of the coordinates used with the math transform (see gridToCoordinateSystem
).
This coordinate system is usually different than the grid coordinate system
of the grid. grid coverage can be accessed (re-projected) with new coordinate
system with the GP_GridCoverageProcessor
component.
In this case, a new instance of a grid coverage is created.
null
.
The gridToCoordinateSystem
) attribute should also be null
if the coordinate system is null
.
getCoordinateSystem
in interface CV_Coverage
evaluate
methods.
java.rmi.RemoteException
- if a remote method call failed.public java.lang.String[] getDimensionNames() throws java.rmi.RemoteException
getDimensionNames
in interface CV_Coverage
java.rmi.RemoteException
- if a remote method call failed.public PT_Envelope getEnvelope() throws java.rmi.RemoteException
If a grid coverage does not have any associated coordinate 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 CV_Coverage
java.rmi.RemoteException
- if a remote method call failed.public java.lang.String[] getMetadataNames() throws java.rmi.RemoteException
getMetadataNames
in interface CV_Coverage
java.rmi.RemoteException
- if a remote method call failed.public java.lang.String getMetadataValue(java.lang.String name) throws java.rmi.RemoteException
getMetadataValue
in interface CV_Coverage
name
- Metadata keyword for which to retrieve data.
java.rmi.RemoteException
- if a remote method call failed.public int getNumSampleDimensions() throws java.rmi.RemoteException
getNumSampleDimensions
in interface CV_Coverage
java.rmi.RemoteException
- if a remote method call failed.public int getNumSources() throws java.rmi.RemoteException
getNumSources
in interface CV_Coverage
java.rmi.RemoteException
- if a remote method call failed.public CV_SampleDimension getSampleDimension(int index) throws java.rmi.RemoteException
getSampleDimension
in interface CV_Coverage
index
- Index for sample dimension to retrieve. Indices are numbered 0 to (n-1).
java.rmi.RemoteException
- if a remote method call failed.public void setSampleDimension(CV_SampleDimension[] sampleDimensions)
sampleDimensions
- Sample dimensions for the coveragepublic GC_GridCoverage getSource(int sourceDataIndex) throws java.rmi.RemoteException
GC_GridCoverage
was produced from an underlying dataset
(by createFromName
or createFromSubName
for
instance) the getNumSources()
method should returns zero, and this
method should not be called.
If the GC_GridCoverage}
was produced using
{link org.opengis.gp.GP_GridCoverageProcessor} then it should return the source
grid coverage of the one used as input to GP_GridCoverageProcessor
.
In general the source() method is intended to return the original
GC_GridCoverage
on which it depends.
This is intended to allow applications to establish what GC_GridCoverage
s
will be affected when others are updated, as well as to trace back to the "raw data".
getSource
in interface CV_Coverage
sourceDataIndex
- Source grid coverage index. Indexes start at 0.
java.rmi.RemoteException
- if a remote method call failed.protected static Tile[] getTiles(Level level, GM_Envelope boundingBox, double scale) throws CoverageCreationException
CoverageCreationException
private static java.util.ArrayList getTilesByDir(GM_Envelope boundingBox, double scale, Level level, java.util.ArrayList list) throws CoverageCreationException
boundingBox
- scale
- level
- list
-
CoverageCreationException
private static java.util.ArrayList getTiles(GM_Envelope boundingBox, double scale, Level level, java.util.ArrayList list)
boundingBox
- scale
- level
- list
-
private static java.util.ArrayList getTiles(GM_Envelope boundingBox, Tile tile, java.util.ArrayList list)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |